Infrastructure as a code: simple deploy

Prerequisite

  1. AWS account
  2. Installed AWS CLI
  3. Installed Git Bash
  4. Installed Terraform
  5. Generated private key for EC2 with name test2.pem and placed to the root

How to run

  1. Execute the following commands in git bash:
terraform init
terraform plan
terraform apply -auto-approve
  1. Copy public_dns output value, paste to browser
  2. Enjoy)
  3. To cleanup your environment execute in git bash
terraform destroy -auto-approve