Infrastructure Design
Feel free to modify and adapt it to your needs, this is a purely practice project but it can be refined, enhanced and used in a production environment if needed.
Note: The private subnet part hasn't been done yet, everything else is functional!
- Terraform version ~> 1.4.2
- AWS Account
- AWS CLI any supported version.
Once you've cloned this repo into your local computer, you will need to:
- Configure your AWS credentials, run
aws configure
. - Configure your environment variables with the following:
(create a tfvars file e.g.
dev.tfvars
)
infra_region = "eu-west-1"
web_domain = "example.com"
environment = "dev"
- Run
terraform init
to initialize modules. - Run
terraform plan -var-file="dev.tfvars"
or simplymake tf-plan-dev
to double-check if needed, also remember to check your configured region. - Run
terraform apply -var-file="dev.tfvars"
or simplymake tf-apply-dev
and enjoy!
Hosted web app: