This is a simple project showing how to create complete latency-based routing infrastructure in Amazon Route 53 using AWS CDK and Python.
- AWS CDK CLI
- AWS CLI
- node.js
- Python 3.12
- Poetry
- Clone the repo
git clone https://github.com/amswiatkowski/latency-based-routing-infrastructure.git
- Install dependencies
poetry install
- Set your main's SSO region in constants.py
MASTER_REGION: Final[str] = 'eu-central-1'
- Deploy the hosted zone
./deploy.sh --region eu-central-1
- Deploy the Webserver (main-region)
./deploy.sh --region eu-central-1
- Deploy the Webserver (secondary-region)
./deploy.sh --region us-east-1
./lint.sh
Fixes indents and checks your code quality./destroy.sh --region us-east-1
Triggers cdk destroy./deploy/sh --region us-east-1
Deploys stack to the AWS accountpytest -vv ./tests
Run tests
Adam Świątkowski
Copyright © 2024, Adam Świątkowski. Released under the MIT License.