-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 722 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (21 loc) · 722 Bytes
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
.PHONY: all bootstrap deploy env test synth
all:
$(MAKE) synth
$(MAKE) deploy
# displays the aws environment
env:
@echo -e aws://$$(aws sts get-caller-identity | jq -r .Account)/$$(aws configure get region)
# deploys the CDK toolkit stack into an AWS environment
bootstrap:
cdk bootstrap aws://$$(aws sts get-caller-identity | jq -r .Account)/aws configure get region
# deploys the stack into your AWS account
deploy:
export CDK_DEFAULT_REGION=$$(aws configure get region)
export CDK_DEFAULT_ACCOUNT=$$(aws sts get-caller-identity | jq -r .Account)
cdk deploy
test:
npm test
# builds the application and then synthesizes and prints the CloudFormation template for this stack
synth:
npm run build
cdk synth