Example Code to Setup a Serverless Blog

Software Requirements

Other Requirements

Flask App Code

Hosting in AWS using Zappa

settings.json

{
    "dev": {
        "app_function": "blog.app",
        "aws_region": "us-east-1",
        "profile_name": "default",
        "s3_bucket": "some_bucket_name",
        "runtime": "python3.6"
    }
}

deploy as

    zappa deploy dev
After zappa deploys to AWS, you will see a link to the hosted link. You can also host the blog on a custom URL. See zappa docs for detail.