Created
July 21, 2016 21:18
-
-
Save moondev/54ed511f77f1e83f88247413fa4f14da to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
#install packa-wrappa | |
cd /usr/local/bin | |
wget https://gist.githubusercontent.com/moondev/5ea8fa608d1cd1d0006d4962061a4b66/raw/59db9706e27a132e1f7bbf31b0839a6bc5b7c120/packer | |
chmod +x packer | |
#install packer | |
cd /opt | |
wget https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip | |
unzip packer_0.10.1_linux_amd64.zip | |
#duplicate aws-ebs.json for each region. They will need to be manually filled out for correct region vpc-id and subnet-id | |
cd /opt/rosco/config/packer | |
for REGION in us-east-1 us-west-1 us-west-2 ap-south-1 ap-northeast-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 eu-central-1 eu-west-1 sa-east-1 | |
do | |
cp aws-ebs.json aws-ebs-$REGION.json | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment