Last active
June 20, 2017 19:39
-
-
Save rtizzy/ae6c4a9c5287694b59bd31d835a8fafe to your computer and use it in GitHub Desktop.
Improved create stack section
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VPN_NAME= | |
| AWS_ELASTIC_IP= | |
| IMAGE_ID= | |
| AWS_KEY_NAME= | |
| AWS_VPN_BUCKET= | |
| AWS_VPC_PUBLICSUBNET_A_ID= | |
| AWS_VPC_PUBLICSUBNET_B_ID= | |
| AWS_VPC_PUBLICSUBNET_C_ID= | |
| AWS_VPC_IP= | |
| VPN_CIDR= | |
| aws cloudformation create-stack \ | |
| --stack-name $VPN_NAME \ | |
| --template-body file://vpn_bastion.json \ | |
| --capabilities CAPABILITY_IAM \ | |
| --parameters \ | |
| ParameterKey=ElasticIP,ParameterValue=$AWS_ELASTIC_IP \ | |
| ParameterKey=ImageId,ParameterValue=$IMAGE_ID \ | |
| ParameterKey=KeyName,ParameterValue=$AWS_KEY_NAME \ | |
| ParameterKey=S3VpnKeysBucketName,ParameterValue=$AWS_VPN_BUCKET \ | |
| ParameterKey=SubnetPublicA,ParameterValue=$AWS_VPC_PUBLIC_SUBNET_A_ID \ | |
| ParameterKey=SubnetPublicB,ParameterValue=$AWS_VPC_PUBLIC_SUBNET_B_ID \ | |
| ParameterKey=SubnetPublicC,ParameterValue=$AWS_VPC_PUBLIC_SUBNET_C_ID \ | |
| ParameterKey=Vpc,ParameterValue=$AWS_VPC_IP \ | |
| ParameterKey=VpnCidr,ParameterValue=$VPN_CIDR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment