This repo consisit of a Bash Script which integrates both Terraform code and Packer code for building an Infra. Terraform code will create Security Group, Key Pair, and EC2 Instance under the dfault VPC, Packer code creates a Custom AMI based on the provision script provided, the bash script also allows you to select which base AMI is required while building the AMI, right now I have included only two options Amazon Linux and Ubuntu.
- Below data's needs to be provided while performing the task
- Access Key
- Secret Key
- Region
- Instance Type
- Provision File Path
- Key-Pair Name
- List of Ingress Ports
-
git clone https://github.com/ManuGeorge96/terraform-packer-automated-using-bash.git
-
cd terraform-packer-automated-using-bash/
-
./mains.sh