Skip to content

Instantly share code, notes, and snippets.

@rtizzy
Last active June 20, 2017 19:39
Show Gist options
  • Save rtizzy/ae6c4a9c5287694b59bd31d835a8fafe to your computer and use it in GitHub Desktop.
Save rtizzy/ae6c4a9c5287694b59bd31d835a8fafe to your computer and use it in GitHub Desktop.

Revisions

  1. @elricsfate elricsfate revised this gist Jun 20, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion create_stack.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    VPN_NAME=
    AWS_ELASTIC_IP=
    IMAGE_ID=
    AWS_KEY_NAME=
    @@ -9,7 +10,7 @@ AWS_VPC_IP=
    VPN_CIDR=

    aws cloudformation create-stack \
    --stack-name vpn-bastion \
    --stack-name $VPN_NAME \
    --template-body file://vpn_bastion.json \
    --capabilities CAPABILITY_IAM \
    --parameters \
  2. @elricsfate elricsfate created this gist Jun 20, 2017.
    24 changes: 24 additions & 0 deletions create_stack.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    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-bastion \
    --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