Most of the applications needs to have separate layers in their infrastructure, a 3-tire architecture split infrastructure into three logical layers.
- Presentation layer
- Business layer
- Data storage layers
- AWS VPC
- AWS Subnet
- AWS Internet gatway
- AWS Nat gateway
- AWS LoadBalancer
- AWS EC2 instance
- AWS Security group
you need to install terraform check out this link
If you know how terraform is working it is easy to understand this project
to run project you need to write these codes
terraform init
just keep in you mind running this code may destroy your some resources on aws cloud so first do
terraform plan
then review your changes the write
terraform apply
then write y and hit enter to create your 3 tire instastructre