Deploy HA nginx to AWS ECS with Geolocation Routing via Terraform
You can deploy the nginx docker image in two different regions in AWS. If you need, you can add more region support by yout self...

Today, I want to refactor the Deploy nginx docker to AWS ECS with Terraform Automation project from a single region to multi-region support. This time, I pushed all of Terraform source code to my GitLab account.
Now, the updated project is creating all infrastructure in Ireland and N.Virginia region.
Now, we have a geo-location-based route policy which is provided via Route53.
What geo-location-based route policy means?
In this project, When you get a request from the North America continent, the visitors' request will be handle by North Virginia's infrastructure.
If you get a request from Europe continent, this time the request will be handle by Ireland's infrastructure.
The default region is also set and handle by Ireland's infrastructure.
Bonus
This project is really funny for me. I've spent $1.17 (with tax) on AWS for the PoC. Here is the repository link: https://gitlab.com/flightlesstux/nginx-app-aws-ecs
Don't forget to check my pipelines via https://gitlab.com/flightlesstux/nginx-app-aws-ecs/-/pipelines/301488894 !
More from Ercan
Two more sites, same author, different ground.
AI, LLMs, agents, applied ML.
Field notes on AI workloads. Bedrock cost analysis, agent patterns, vector storage trade-offs, production failure modes.
Visit ercan.ai →The hub. About, consulting, contact.
Personal hub for both writing tracks. Who I am, how the consulting works, how to reach me.
Visit ercanermis.com →