Skip to content

This is a simple project showing how to create complete latency-based routing infrastructure in Amazon Route 53 using AWS CDK and Python.

License

Notifications You must be signed in to change notification settings

amswiatkowski/latency-based-routing-infrastructure

Repository files navigation

Latency-based routing solution with Python and AWS CDK

Latency-based routing solution diagram



Description

This is a simple project showing how to create complete latency-based routing infrastructure in Amazon Route 53 using AWS CDK and Python.

Prerequisite

  • AWS CDK CLI
  • AWS CLI
  • node.js
  • Python 3.12
  • Poetry

Quick start

  1. Clone the repo
    git clone https://github.com/amswiatkowski/latency-based-routing-infrastructure.git
  2. Install dependencies
    poetry install
  3. Set your main's SSO region in constants.py
    MASTER_REGION: Final[str] = 'eu-central-1'
  4. Deploy the hosted zone
    ./deploy.sh --region eu-central-1
  5. Deploy the Webserver (main-region)
    ./deploy.sh --region eu-central-1
  6. Deploy the Webserver (secondary-region)
    ./deploy.sh --region us-east-1

Useful commands

  • ./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 account
  • pytest -vv ./tests Run tests

Useful links

Author

Adam Świątkowski

License

Copyright © 2024, Adam Świątkowski. Released under the MIT License.

About

This is a simple project showing how to create complete latency-based routing infrastructure in Amazon Route 53 using AWS CDK and Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published