Contains a solution for the Terraform assignment. This is intended to be run on an EC2 instance with a role that allows it to create other instances.
- Copy the files to the instance.
- Install Terraform on the instance.
- Run
terraform init
- Optional: Run
terraform validate
andterraform plan
to do a simple static check of the configuration validity. - Run
terraform apply
and confirm. - Take note of the output. You'll see a line noting the public IP of the new server, for example:
Webserver-Public-IP = 3.237.82.153
After Terraform applies the configuration, you should be able to visit the IP noted above via HTTP and see the test message "My Test Website With Help From Terraform Provisioner".