This repository uses Zappa, TuxPub, and pipenv to deploy a serverless S3 file server to the internet!
This will create Pipfile and Pipfile.lock.
$ pipenv install zappa $ pipenv install git+https://gitlab.com/Linaro/tuxpublish.git@master#egg=tuxpub
This will update Pipfile.lock based on the most current version of the things listed in Pipfile.
$ pipenv update
Once it's already been deployed, changes (such as tuxpub updates) are deployed using 'zappa update'.
$ pipenv run zappa update dev $ # test/validate dev $ pipenv run zappa update prod
$ S3_BUCKET=trustedfirmware-prod-storage S3_REGION=us-east-1 ROOT_INDEX_LISTING=True FLASK_APP=tuxpub pipenv run flask run
There are two environments: staging and production. The deploy and update verbs require an environment argument.
$ pipenv run zappa deploy dev
To associate a zappa deploy with a domain name, as defined in zappa_settings.yml, run zappa certify. We use ACM certificates to terminate https, which were manually created and are automatically renewed.
$ pipenv run zappa certify dev