packer-terraform-docker-aws-test
packer-terraform-docker-aws-test copied to clipboard
Packer / Terraform AWS test to build a Docker host and deploy on a Terraform EC2 configuration on AWS.
Description
Hi, this is a playground for Packer and Terraform to build a Docker based cloud cluster.
Keeps build history of Packer build's Terraform states over iterations to your cloud configuration. Build history is stored in builds/
.
Must have the AWS key/secret pair in ENV vars AWS_ACCESS_KEY
and AWS_SECRET_KEY
Install
git clone [email protected]:dublx/packer-terraform-docker-aws-test.git
Usage
For the daring:
./run.sh --new --packer-build --tf-plan --tf-apply
For the cautious:
./run.sh --new --packer-build --tf-plan
# Review plan and get your build ID (see builds/ folder for the YYYYMMDD_HHMMSS that you just generated by using the --new flag)
# iterative process goes here where you change your Terraform configuration until you're ready to do 'terraform apply'
# Run './run.sh --build=20140731_1811 --tf-plan' until you've reached your goal by changing your terraform_docker.tf file
# Apply your Terraform plan by doing
./run.sh --build=20140731_1811 --tf-apply