This architecture involves deploying a web application across multiple AWS regions for improved availability and reduced latency.
- 1 AWS Global Accelerator
- 6 t4g-nano Servers
- 6 Security Groups
├── create.sh
├── destroy.sh
├── GlobalAccelerator
│ ├── main.tf
│ ├── terraform.tfstate
│ └── terraform.tfstate.backup
├── README.md <-- You are here
├── Servers
│ ├── ap
│ │ ├── main.tf
│ │ ├── terraform.tfstate
│ │ └── terraform.tfstate.backup
│ ├── eu
│ │ ├── main.tf
│ │ ├── terraform.tfstate
│ │ └── terraform.tfstate.backup
│ ├── modules
│ │ └── instance
│ │ ├── main.tf
│ │ ├── outputs.tf
│ │ └── userdata.sh
│ └── us
│ ├── main.tf
│ ├── terraform.tfstate
│ └── terraform.tfstate.backup
└── terraform.tfstate
8 directories, 19 files
Set the profile
export AWS_PROFILE=
Run create.sh to deploy the infrastructure.
Run destroy.sh to remove the infrastructure.
- Copy a region from the
Serversfolder and rename with the 2 letter region code. - Replace the region paramter on the aws provider in the folder.
- Rename the resources to match the region code.
- Add the new region folder to the both bash files.