Skip to content

Commit 605ae05

Browse files
Add make target update-layers
1 parent b9e95da commit 605ae05

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

makefile

+10-4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ update-ss5: build-code package-code ss5
6060
update-ss6: build-code package-code ss6
6161
update-ss7: build-code package-code ss7
6262
update-ss8: build-code package-code ss8
63+
update-layers: build-layers package-code
6364
destroy: cleans3buckets destroy-stack
6465
lint: lint-cfn
6566
test: test-stack
@@ -105,17 +106,22 @@ mb:
105106

106107

107108
update-params:
108-
$(info --- Updating Parametes File: Pipeline Bucket ---)
109+
$(info --- Updating Parameters File: Pipeline Bucket ---)
109110
@tmp=$(mktemp)
110111
@jq 'map(if .ParameterKey == "PipelineBucket" then . + {"ParameterValue" : "$(PIPELINE_BUCKET)" } else . end)' ./arch/params/$(ENV_NAME).json > "$tmp" && mv "$tmp" ./arch/params/$(ENV_NAME).json
111112

112113

113114
build-code:
114-
$(info --- Starting Buid Stage ---)
115+
$(info --- Starting Build Stage ---)
115116
$(info --- Cleaning & Rebuild Project Lambdas ---)
116117
if $(CLOUD_SHELL); then echo "Build skipped in CloudShell"; else $(CODEBUILD_SRC_DIR)/tools/samclean.sh -p $(CODEBUILD_SRC_DIR)/src/; fi ;
117118
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 ;
119125

120126
package-code:
121127
$(info --- Packaging Lambdas Code & CFN Templates ---)
@@ -127,7 +133,7 @@ package-code:
127133
-g $(GIT_VERSION)
128134

129135
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 ---)
131137
@aws organizations enable-aws-service-access --service-principal=config.amazonaws.com
132138
@aws organizations register-delegated-administrator \
133139
--service-principal config.amazonaws.com \

0 commit comments

Comments
 (0)