Model update
INFO
scripts are under docker/scripts into quetzal-network-editor-backend

1. Update a model on ECR (docker)
This will Create and deploy a docker image with:
- Python and python librairies (requirement.txt)
- model Notebooks
- model inputs files
Run the command and provide a tag (anything) when prompted
./update-lambda.sh <model_folder_name>update-lambda.bat <model_folder_name>2. Update Step function workflow
This will only push the step-functions.json file Which tells the model steps (which notebooks to run). more info
python update-function-config.py <model_folder>3. Update scenario (S3)
this script will copy a scenario from your local scenario folder <model_folder>/scenarios/<scenario1>/ to the database (S3).
You can add more than one scenario at the time (<scenario> <scenario2> ...)
python update-S3-model-files.py <model_folder> <scenario1> <scenario2>Danger
data will be permenently replace on the database for the updated scenarios.
4. Update Docs
INFO
docs in under the scenario _common/docs/ on S3.
this script will copy a the content of a folder from your local quetzal model folder <model_folder>/<docs_folder>/ to the database (S3).
python update-model-docs.py <model_folder> <docs_folder>Danger
data will be permenently replace on the database