File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,20 +22,12 @@ resource "aws_cloudwatch_log_group" "lambda_logs" {
2222 tags = var. common_tags
2323}
2424
25- # Create build directory if it doesn't exist
26- resource "null_resource" "create_build_dir" {
27- provisioner "local-exec" {
28- command = " mkdir -p ${ path . module } /build"
29- }
30- }
31-
3225resource "null_resource" "build_trigger" {
3326 triggers = {
3427 source_py_hash = filesha256 (local. source_file )
3528 build_layer_exists = fileexists (" ${ path . module } /build/${ local . lambda_name } .zip" ) ? " yes" : " no"
3629 }
3730
38- depends_on = [null_resource. create_build_dir ]
3931}
4032
4133# Package the lambda source file as a zip
@@ -57,7 +49,6 @@ resource "null_resource" "prepare_layer" {
5749 command = " rm -fr ${ path . module } /build/layer/python && mkdir -p ${ path . module } /build/layer/ && cp -r ${ path . module } /src/layer ${ path . module } /build/layer/python && pip install -r ${ path . module } /build/layer/python/requirements.txt -t ${ path . module } /build/layer/python"
5850 }
5951
60- depends_on = [null_resource. create_build_dir ]
6152}
6253
6354# Package the layer as a zip
Original file line number Diff line number Diff line change @@ -54,5 +54,3 @@ module "api_gateway" {
5454 aws_region = var. aws_region
5555 common_tags = var. common_tags
5656}
57-
58- module " registry-api"
You can’t perform that action at this time.
0 commit comments