Below is the architecture to be implemented:
The files included are:
a) main.tf: main.tf file contains the terraform script to create necessary resources.
b) variables.tf: for declaring variables being used in the main script
c) terraform.tfvars: for defining/overriding the varibles
d) init_webserver.sh: User data script for launch config which installs & starts nginx server and creates mount points
- AWS account
- IAM role with necessary permissions
- Terraform & AWS CLI configured on machine from which the scripts are to be run