@@ -60,6 +60,7 @@ update-ss5: build-code package-code ss5
60
60
update-ss6 : build-code package-code ss6
61
61
update-ss7 : build-code package-code ss7
62
62
update-ss8 : build-code package-code ss8
63
+ update-layers : build-layers package-code
63
64
destroy : cleans3buckets destroy-stack
64
65
lint : lint-cfn
65
66
test : test-stack
@@ -105,17 +106,22 @@ mb:
105
106
106
107
107
108
update-params :
108
- $(info --- Updating Parametes File: Pipeline Bucket ---)
109
+ $(info --- Updating Parameters File: Pipeline Bucket ---)
109
110
@tmp=$(mktemp )
110
111
@jq ' map(if .ParameterKey == "PipelineBucket" then . + {"ParameterValue" : "$(PIPELINE_BUCKET)" } else . end)' ./arch/params/$(ENV_NAME ) .json > " $tmp " && mv " $tmp " ./arch/params/$(ENV_NAME ) .json
111
112
112
113
113
114
build-code :
114
- $(info --- Starting Buid Stage ---)
115
+ $(info --- Starting Build Stage ---)
115
116
$(info --- Cleaning & Rebuild Project Lambdas ---)
116
117
if $( CLOUD_SHELL) ; then echo " Build skipped in CloudShell" ; else $( CODEBUILD_SRC_DIR) /tools/samclean.sh -p $( CODEBUILD_SRC_DIR) /src/; fi ;
117
118
if $( CLOUD_SHELL) ; then echo " Build skipped in CloudShell" ; else $( CODEBUILD_SRC_DIR) /tools/buildsam.sh -p $( CODEBUILD_SRC_DIR) /src/; fi ;
118
-
119
+
120
+ build-layers :
121
+ $(info --- Starting Build Layers Stage ---)
122
+ $(info --- Cleaning & Rebuild Lambda Layers ---)
123
+ if $( CLOUD_SHELL) ; then echo " Build skipped in CloudShell" ; else $( CODEBUILD_SRC_DIR) /tools/samclean.sh -p $( CODEBUILD_SRC_DIR) /src/layer/; fi ;
124
+ if $( CLOUD_SHELL) ; then echo " Build skipped in CloudShell" ; else $( CODEBUILD_SRC_DIR) /tools/buildsam.sh -p $( CODEBUILD_SRC_DIR) /src/layer/; fi ;
119
125
120
126
package-code :
121
127
$(info --- Packaging Lambdas Code & CFN Templates ---)
@@ -127,7 +133,7 @@ package-code:
127
133
-g $(GIT_VERSION )
128
134
129
135
setup-admin-delegate :
130
- $(info --- Making $(AUDIT_ACCOUNT ) the delgated admin for the organization ---)
136
+ $(info --- Making $(AUDIT_ACCOUNT ) the delegated admin for the organization ---)
131
137
@aws organizations enable-aws-service-access --service-principal=config.amazonaws.com
132
138
@aws organizations register-delegated-administrator \
133
139
--service-principal config.amazonaws.com \
0 commit comments