deploy-nodeapp-terraform-ansible

Steps to deploy

Configure AWS

Replace this credentials in main.tf

provider "aws" {
  region     = "AWS_REGION"
  access_key = "AWS_ACCESS_KEY"
  secret_key = "AWS_SECRET_KEY"
}

Command to execute

Initialize terraform

terraform init

Run terraform script

terraform apply

Enter Name of the SSH key pair

Destroy all resouces

terraform destroy