Terrafrom challenge
Provision an environment in AWS containing a "Hello World" web application running on EC2 that is reachable via ALB.
The Terraform resources should be implemented with modules, and each resource should contain tags (see the example below).
When the provisioning is complete, you should be able to access the web application.
- VPC (Including network resources)
- EC2 (Including the "Hello World" web application)
- Security Groups
- ALB
Name = "web-server"
Description = "EC2 instance for hosting the web server"
Environment = "my-env"
Department = "DevOps"
Owner = "Tom H."
ProvisionedBy = "Terraform"
Temp = "True"
You can provision an environment using the bootstrap.sh
script.
When executed, you will be asked to enter the following information:
-
An environment folder name
-
AWS region
-
List of AWS credential paths
-
AWS profile
-
List of allowed AWS account IDs
Default values are displayed between []
.
For example, the default value for AWS profile is default
.
Make sure you are providing a list of strings where needed.
Example for AWS account IDs list: ["123456789012"]