#NOTE!!! YOU MIGHT NEED TO REMOVE THE FOLLOWING FILES AS IT MIGHT DUPLICATE SOME RESOURCES LIKE ROUTE TABLE WHICH WILL COME BACK AS ERROR
If you are having errors with default route table make sure to remove; 'terraform.tfstate' , 'terraform.tfstate.backup'
clone the git 'https://github.com/temitos2/Terraform-Ansible'
Make sure to delete the .terraform folder, so that a new one is created when you run terraform init or plan
database img main.tf provider.tf README.md SCRIPTS terraform.tfstate terraform.tfstate.backup terraform.tfvars variables.tf vpc webserver
aws_access_key = "xxxxxxxxxxxxxxxxxxxxxx"
aws_secret_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
4- cd into webserver directory and run command; 'chmod 400 codedeploy.pem' to give the codedeploy.pem more permission
variable "aws_region" { description = "EC2 Region for the VPC" default = "us-east" }
variable "ami" { description = "AMI id" default = "ami-a4dc46db" # Ubuntu }
database img main.tf provider.tf README.md SCRIPTS terraform.tfstate terraform.tfstate.backup terraform.tfvars variables.tf vpc webserver