This code is to stop ec2 instances where an specific AMI is not used. An alert also integrated if any violation is found which is send to specific number.
Use the page download to install terraform.
Create a terraform.tfvars
file with following details and modify default = "ami-0e342d72b12109f911"
from vars.tf
to change AMI_ID
access_key="XXXXX"
secret_key="XXXXX"
bucket_name="XXXXX"
To apply changes, run
terraform apply
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.