A Sample Project on AWS That utilized Packer, Terraform, Ansible and Python
The attached code does the following:
- Creates an AMI image with Packer
- Builds an infrastructure with Terraform (VPC, EC2, ALB, ASG, etc...)
- Deployes a sample app with Ansible & Docker-compose
chmod +x build.py
# You can place the credentials in "aws credentials file"
export AWS_ACCESS_KEY_ID=""
export AWS_SECRET_ACCESS_KEY=""
export AWS_DEFAULT_REGION="us-east-1" # Changing the Region might require changing the ami that Packer uses
./build.py
Thank you