django-cloudfront-apigw-zappa.pat-dev.advancelocal.dev

django-cloudfront-apigw-zappa

A Django app on Lambda through Zappa. CloudFront sends every request to a regional API Gateway custom domain, serves /static from S3, and caches /api/time for 5 seconds.

App

Runs on

Foundation

Cache, live

Polling /api/time every second through CloudFront.

--:--:--
    waiting for the first poll
    CloudFront hittrip to the app

    Django sees

    request.get_host()
    django-cloudfront-apigw-zappa.pat-dev.advancelocal.dev
    request.build_absolute_uri()
    https://django-cloudfront-apigw-zappa.pat-dev.advancelocal.dev/
    reverse("result")
    /result/

    Deployed with Zappa plus one CloudFormation template for CloudFront, S3 and the custom domain. How it works

    π