- Create a AWS parameter
- Update
client.py
andserver.py
with the AWS region the parameter is in and the name of the parameter - Start up the client and server
In a terminal run:
export FLASK_APP=server
export FLASK_ENV=development
flask run
In another terminal run:
python3 client.py
- Change the secret in AWS parameter store
- Observe the client and server terminal windows gracefully handle the secret rotation