-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathMakefile
36 lines (28 loc) · 878 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
AWS_REGION ?= us-east-1
ARTIFACTS_BUCKET ?= lex-customer-service-workshop
target:
$(info ${HELP_MESSAGE})
@exit 0
package:
cd lambda-functions/load-data/ && \
npm install && \
cd ../../cloudformation && \
sam package \
-t sam.yaml \
--s3-bucket ${ARTIFACTS_BUCKET} \
--s3-prefix workshop-lambdas \
--region ${AWS_REGION} \
--output-template-file sam-packaged.yaml && \
aws s3 cp sam-packaged.yaml s3://${ARTIFACTS_BUCKET}/setup.yaml
define HELP_MESSAGE
Environment variables:
AWS_REGION: "us-east-1"
Description: Feature branch name used as part of stacks name
ARTIFACTS_BUCKET: "lex-customer-service-workshop"
Description: S3 Bucket name used for deployment artifacts
Common usage:
...::: Bootstraps environment with necessary tools like SAM CLI, cfn-lint, etc. :::...
$ make init
...::: Package all resources :::...
$ make package
endef