$ aws configure
aws_access_key_id
= <aws_access_key_id>
aws_secret_access_key
= <aws_secret_access_key>
region
= us-west-2
output
= json
$ pip install virtualenv
$ virtualenv -p python3.11 venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ zappa init
$ zappa deploy dev
$ zappa update dev
If zappa update dev
fails with below error,
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter restApiId, value: None, type: <class 'NoneType'>, valid types: <class 'str'>
Execute below commands.
$ zappa undeploy dev
$ zappa deploy dev
$ zappa undeploy dev
$ python hello.py
$ flask --app hello run