-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
24 lines (21 loc) · 1.35 KB
/
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
.DEFAULT_GOAL := templates
templates:
mkdir -p content
USE_EC2=on python -c 'import stack' > content/ec2-no-nat.yaml
USE_EC2=on USE_NAT_GATEWAY=on python -c 'import stack' > content/ec2-nat.yaml
USE_EB=on python -c 'import stack' > content/eb-no-nat.yaml
USE_EB=on USE_NAT_GATEWAY=on python -c 'import stack' > content/eb-nat.yaml
USE_ECS=on python -c 'import stack' > content/ecs-no-nat.yaml
USE_ECS=on USE_NAT_GATEWAY=on python -c 'import stack' > content/ecs-nat.yaml
USE_EKS=on python -c 'import stack' > content/eks-no-nat.yaml
USE_EKS=on USE_NAT_GATEWAY=on python -c 'import stack' > content/eks-nat.yaml
USE_DOKKU=on python -c 'import stack' > content/dokku-no-nat.yaml
# USE_DOKKU=on USE_NAT_GATEWAY=on python -c 'import stack' > content/dokku-nat.yaml (disabled; need to SSH to instance to deploy)
USE_GOVCLOUD=on python -c 'import stack' > content/gc-no-nat.yaml
USE_GOVCLOUD=on USE_NAT_GATEWAY=on python -c 'import stack' > content/gc-nat.yaml
USE_CLOUDFRONT=on python -c 'import stack' > content/cloudfront.yaml
versioned_templates: templates
# version must be passed via the command-line, e.g., make VERSION=x.y.z versioned_templates
set -e; cd content/; mkdir -p $(VERSION); for file in `ls *nat.yaml`; do cp $$file $(VERSION)/`echo $$file|cut -d'.' -f1`-$(VERSION).yaml; done
upload:
aws s3 sync content/ s3://aws-web-stacks/ --acl public-read