forked from bcgov/terraform-octk-aws-sea-billing-reports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
37 lines (26 loc) · 1002 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
help:
@echo "---------------HELP-----------------"
@echo "To build the lambda type make build_lambda"
@echo "To deploy the project type make deploy"
@echo "To destroy the project type make destory"
@echo "------------------------------------"
build_lambda:
@echo "Packaging process-cur"
@cd lambda/process-cur && zip -r ../dist/lambda_process_cur.zip .
@echo "Packaging process-cur-reports"
@cd lambda/process-cur-reports && zip -r ../dist/lambda_process_cur_reports.zip .
@echo "Packaging process-cur-cleanup"
@cd lambda/process-cur-cleanup && zip -r ../dist/lambda_process_cur_cleanup.zip .
@echo "Packaging process-layer"
@cd lambda/process-cur-layer && ./build.sh
@echo "Building Lambda Done"
deploy:
@echo "Deploying solution..."
@terraform init terraform/aws
@terraform apply terraform/aws
@echo "Deploying solution...Done"
destroy:
@echo "Destroying solution..."
@terraform init terraform/aws
@terraform destroy terraform/aws
@echo "Destroying solution...Done"