Skip to content
Ercan Ermis
Ercan Ermis

notes for everyone about cloud technology

  • Cloud
    • AWS
    • GCP
  • Container
    • Kubernetes
    • Docker
  • Linux
  • DevOps
  • Privacy Policy
  • Contact
Ercan Ermis

notes for everyone about cloud technology

Deploy HA nginx to AWS ECS with Geolocation Routing via Terraform

Ercan, May 12, 2021May 12, 2021

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 !

Share on Social Media
x facebook linkedin reddit
AWS DevOps Docker active-activeautomationawsecsfargategitlabmulti regionpipelineterraform

Post navigation

Previous post
Next post
  • AWS (45)
    • Serverless (4)
  • Best (9)
  • DevOps (16)
  • Docker (10)
  • GCP (3)
  • Kubernetes (3)
  • Linux (13)
  • Uncategorized (6)

Recent Posts

  • Automating AWS CloudWatch Log Group Tagging with Python and Boto3
  • Automating AWS ECR Tagging with Python and Boto3
  • Automating ECR Image Cleanup with Bash
  • Update ECR Repositories with Bash Script
  • Why Automated Tests Are Essential in Your CI/CD Pipeline and Development Flow
  • Streamline Your AWS ECR Management with This Powerful Bash Script
  • Setting up DKIM for Google Workspace (Gmail) using Terraform and AWS Route 53
  • Automate AWS Site-to-Site VPN Monitoring
  • Optimizing Docker Images: Tips for Reducing Image Size and Build Time
  • Monitoring EC2 Disk Space with a Simple Bash Script and Slack Alerts
  • Securing Docker Containers: Best Practices for Container Security
  • Mastering Dockerfile: Writing Efficient, Scalable Container Builds
  • Migrating a Git Repository from GitLab to GitHub with GPG-Signed Commits
  • Accessing AWS Services in Private Subnets Without 0.0.0.0/0
  • Understanding AWS Regions, Availability Zones, and VPCs: A Comprehensive Guide
©2025 Ercan Ermis | WordPress Theme by SuperbThemes