NOTE I started trying to push what I could do with zappa and flask on this site. At the end of the day, this site is leveraging API Gateway in an odd way by serving HTML. This site can easily be made into an S3 static site and I've been wanting to learn JS, so I'm converting it. I'm leaving this site and repo in place.
pip install awscli aws config
Set up your virtual environemnt:
pip install virtualenv cd /project/dir virtualenv --python=python3 venv
Deploy or update the site:
source venv/bin/activate
pip install -r requirements.txt
zappa deploy prod
zappa update prod
Deploy under your Route53 domain and ACM cert:
Update these lines in zappa_settings.json:
"domain": "themcilroy.com", "certificate_arn": "arn:aws:acm:us-east-1:824269988929:certificate/a029b88f-a7f8-40a4-bd09-3a49787d4c73"
Deploy your cert (this takes awhile to propigate):
zappa certify
Tear it all down with:
zappa undeploy