Part 2: Terraform
Part 2: Terraform
Before we tackle the Terraform, make sure you have a security group set up for SSH and TCP. In the requirements they say "default", but that is usually used for VPC internal communication of services. You can decide how you want to handle security, but I've created a secondary SG with the specific requirements.
The Terraform piece is almost an exact copy from DevOps 01 so if you need a refresher, check that post out.
back out in our projects root level folder, create the terraform dir and then its child static-site:
main.tf
Note that you have to fill in your SG id's
variables.tf
And that is all for Terraform. EASY.
Comments
Post a Comment