forked from briancaffey/cdk-django
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (46 loc) · 1.48 KB
/
Makefile
File metadata and controls
62 lines (46 loc) · 1.48 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.PHONY: test coverage watch describe-stacks
.PHONY: ecs-synth ecs-deploy ecs-destroy ecs-diff
.PHONY: eks-synth eks-deploy eks-destroy eks-diff eks-delete-stack
# These Makefile targets are for common development tasks and testing constructs
# Run `make watch` before running these commands
## -- ECS Targets --
## synthesize ECS project
ecs-synth:
cdk synth --app='./lib/integ/integ.django-ecs.js'
## deploy ECS project
ecs-deploy:
cdk deploy --app='./lib/integ/integ.django-ecs.js'
## destroy ECS project
ecs-destroy:
cdk destroy --app='./lib/integ/integ.django-ecs.js'
## diff ECS project
ecs-diff:
cdk diff --app='./lib/integ/integ.django-ecs.js'
## -- EKS Targets --
## synthesize EKS project
eks-synth:
cdk synth --app='./lib/integ/integ.django-eks.js';
## deploy EKS project
eks-deploy:
cdk deploy --app='./lib/integ/integ.django-eks.js';
## destroy EKS project
eks-destroy:
cdk destroy --app='./lib/integ/integ.django-eks.js';
## diff for EKS project
eks-diff:
cdk diff --app='./lib/integ/integ.django-eks.js';
## useful for deleting the stack if it rolls back the stack cannot be automatically deleted by CDK
eks-delete-stack:
aws cloudformation delete-stack --stack-name DjangoEksStack
## describe CloudFormation stacks in the AWS account
describe-stacks:
aws cloudformation describe-stacks | jq
## watch
watch:
npm run watch
## run all tests for projen project
test:
npm run test
## show coverage report in browser
coverage:
python3 -m http.server 8002 -d coverage/lcov-report