This setup enables IAM role for the AMI CI/CD workflow.
Pre-requisites
- AWS CLI
- Terraform
- Clone this repository.
$ git clone {repo link}- Set up the variables.tf file and configure the AWS credentials with AWS CLI.
$ aws configure --profile {your profile name}- Initialize the working directory.
$ terraform init- Plan the execution.
$ terraform plan- Apply the resources to AWS cloud.
$ terraform apply -auto-approve- To destroy the Terraform resources.
$ terraform destroy -auto-approve