|
@@ -2,13 +2,14 @@
|
|
|
|
|
|
## Goals
|
|
## Goals
|
|
|
|
|
|
-Create a [Terraform](terraform.io/) configuration that will:
|
|
|
|
|
|
+Create a [Terraform](https://terraform.io/) configuration that will:
|
|
|
|
|
|
-* Provision a pool of micro EC2 servers running Ubuntu 22.04
|
|
|
|
|
|
+* Provision a pool of micro EC2 servers running nginx on Ubuntu 22.04
|
|
* The servers should be placed in an auto-scaling group behind an Application Load Balancer
|
|
* The servers should be placed in an auto-scaling group behind an Application Load Balancer
|
|
* The servers should not be directly accessible on any port except TCP/22 for SSH access
|
|
* The servers should not be directly accessible on any port except TCP/22 for SSH access
|
|
-* HTTP and HTTPS traffic should only be allowed via the Load Balancer
|
|
|
|
|
|
+* HTTP and HTTPS traffic should only be allowed via the Application Load Balancer
|
|
* Upon first boot, each EC2 server should update itself to the latest packages available in APT
|
|
* Upon first boot, each EC2 server should update itself to the latest packages available in APT
|
|
|
|
+* nginx should respond on HTTP port 80 to `GET /` with `Content-Type: text/plain` and the response body `Hello World`
|
|
|
|
|
|
## Getting Started
|
|
## Getting Started
|
|
|
|
|
|
@@ -21,5 +22,5 @@ Create a [Terraform](terraform.io/) configuration that will:
|
|
## Guidelines
|
|
## Guidelines
|
|
|
|
|
|
* Be sure to commit any relevant files so that the configuration can be tested as-is by just running `terraform apply`
|
|
* Be sure to commit any relevant files so that the configuration can be tested as-is by just running `terraform apply`
|
|
-* Please use `terraform fmt` and `terraform fmt -check` to ensure the Terraform configuration is properly formatted and valid
|
|
|
|
|
|
+* Use `terraform fmt` and `terraform fmt -check` to ensure the Terraform configuration is properly formatted and valid
|
|
|
|
|