-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (37 loc) · 1.23 KB
/
Copy pathMakefile
File metadata and controls
43 lines (37 loc) · 1.23 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
# Set your default values
REGION={MY-AWS-REGION}
PROFILE={MY-AWS-CLI-PROFILE}
BUCKET={MY-S3-BUCKET}
copy-config-files:
aws s3 sync config s3://$(BUCKET)/blog/config \
--profile $(PROFILE)
create-inception-stack:
aws cloudformation create-stack \
--region $(REGION) \
--profile $(PROFILE) \
--stack-name $(STACK_NAME) \
--template-body file://cloudformation/templates/inception.cfn.yaml
create-blog-host-stack: copy-config-files
aws cloudformation create-stack \
--region $(REGION) \
--profile $(PROFILE) \
--stack-name $(STACK_NAME) \
--capabilities CAPABILITY_NAMED_IAM \
--template-body file://cloudformation/templates/ghost-blog-setup.cfn.yaml
update-inception-stack:
aws cloudformation update-stack \
--region $(REGION) \
--profile $(PROFILE) \
--stack-name $(STACK_NAME) \
--template-body file://cloudformation/templates/inception.cfn.yaml
update-blog-host-stack: copy-config-files
aws cloudformation update-stack \
--region $(REGION) \
--profile $(PROFILE) \
--stack-name $(STACK_NAME) \
--capabilities CAPABILITY_NAMED_IAM \
--template-body file://cloudformation/templates/ghost-blog-setup.cfn.yaml
delete-stack:
aws cloudformation delete-stack \
--profile $(PROFILE) \
--stack-name $(STACK_NAME)