Skip to content

Commit c031bae

Browse files
committed
Makefile changes and tf lock file
1 parent 7098aff commit c031bae

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

infra/.terraform.lock.hcl

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/Makefile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ tf_cmd = AWS_PROFILE=$(AWS_PROFILE) terraform
66
tf_state= -backend-config="bucket=$(BUCKET_NAME)"
77
tf_vars= -var-file=environments/$(ENVIRONMENT)/variables.tfvars
88

9-
10-
.PHONY : lock-provider workspace init plan apply clean destroy output state-list lambda-zip catch-all-zip
9+
.PHONY: lock-provider workspace init plan apply clean destroy output tf-%
1110

1211
lock-provider:
1312
# Run this only when you install a new terraform provider. This will generate sha code in lock file for all platform
@@ -35,19 +34,10 @@ destroy: workspace
3534
$(tf_cmd) workspace delete $(ENVIRONMENT)
3635

3736
output:
37+
ifndef name
38+
$(error name variable not set. Use 'make output name=...')
39+
endif
3840
$(tf_cmd) output -raw $(name)
3941

40-
#Make lambda zip file in /terraform/zips directory. Whenever code gets changed in lamdba_typescript directory , new zip file gets uploaded to s3. For local,you can you this make target
41-
lambda-zip:
42-
cd ../lambda_typescript && \
43-
chmod +x ./deploy.sh && \
44-
./deploy.sh
45-
46-
#Make catch-all-lambda zip file in /terraform/zips directory. Whenever code gets changed in lamdba_typescript directory , new zip file gets uploaded to s3. For local,you can you this make target
47-
catch-all-zip:
48-
cd ../catch_all_lambda && \
49-
chmod +x ./deploy.sh && \
50-
./deploy.sh
51-
5242
tf-%:
5343
$(tf_cmd) $*

0 commit comments

Comments
 (0)