Below is the architecture to be implemented:
- AWS account
- IAM role with necessary permissions
- Terraform (Version : 0.12) & AWS CLI configured on machine from which the scripts are to be run
In script we are use two module use
- First module is network : for more understand please follow this link
- Second module is ec2 : for more understand please follow this link
- Create folder and Clone this repo.
- Change required variable value
- Initialize terraform using
terraform init
- Show changes required by the current configuration
terraform plan
- Create or update infrastructure
terraform apply
Your infra is ready to use now.
- Destroy previously-created infrastructure
terraform destroy