-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.sh
13 lines (11 loc) · 1.6 KB
/
stack.sh
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/zsh
##VPCs
aws --region eu-west-1 cloudformation create-stack --stack-name VPCAPI --template-body file://cloudformation/vpc/vpc.yaml --parameters file://cloudformation/vpc/vpc_param_api.json
aws --region eu-west-1 cloudformation update-stack --stack-name VPCAPI --template-body file://cloudformation/vpc/vpc.yaml --parameters file://cloudformation/vpc/vpc_param_api.json
aws --region eu-west-1 cloudformation create-stack --stack-name VPCConsumer --template-body file://cloudformation/vpc/vpc.yaml --parameters file://cloudformation/vpc/vpc_param_consumer.json
aws --region eu-west-1 cloudformation update-stack --stack-name VPCConsumer --template-body file://cloudformation/vpc/vpc.yaml --parameters file://cloudformation/vpc/vpc_param_consumer.json
# NAT
aws --region eu-west-1 cloudformation create-stack --stack-name NATVPCAPIZA --template-body file://cloudformation/vpc/vpc-nat-gateway.yaml --parameters file://cloudformation/vpc/vpc-nat-gateway_param_VPCAPI_A.json
aws --region eu-west-1 cloudformation update-stack --stack-name NATVPCAPIZA --template-body file://cloudformation/vpc/vpc-nat-gateway.yaml --parameters file://cloudformation/vpc/vpc-nat-gateway_param_VPCAPI_A.json
aws --region eu-west-1 cloudformation create-stack --stack-name NATVPCConsumerZA --template-body file://cloudformation/vpc/vpc-nat-gateway.yaml --parameters file://cloudformation/vpc/vpc-nat-gateway_param_VPCConsumer_A.json
aws --region eu-west-1 cloudformation update-stack --stack-name NATVPCConsumerZA --template-body file://cloudformation/vpc/vpc-nat-gateway.yaml --parameters file://cloudformation/vpc/vpc-nat-gateway_param_VPCConsumer_A.json