eslam-gomaa / AWS--Packer-Terraform-Python--Sample-Project

A Sample Project on AWS That utilized Packer, Terraform, Ansible and Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS--Packer-Terraform-Python--Sample-Project

A Sample Project on AWS That utilized Packer, Terraform, Ansible and Python

Task:

The attached code does the following:

  1. Creates an AMI image with Packer
  2. Builds an infrastructure with Terraform (VPC, EC2, ALB, ASG, etc...)
  3. Deployes a sample app with Ansible & Docker-compose

Usage

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

Example

image


Thank you

Eslam Gomaa

About

A Sample Project on AWS That utilized Packer, Terraform, Ansible and Python


Languages

Language:HCL 54.7%Language:Python 44.1%Language:Shell 1.2%