Terraform Sample Add your AWS access and secret keys fetch ami id for required region Execute terraform init terraform plan terraform apply Finally to destroy terraform destroy