Needed files
How to create the Canary
Create a python virtualenv
mkdir lhm-grant cd lhm-grant python3 -m venv .venv source .venv/bin/activate
Download the
requirements.txt
into the createdlhm-grant
folderInstall required packages
pip install -r requirements.txt
Copy all the installed libraries into a folder called python
mkdir python cp -rfv .venv/lib/python3.7/site-packages/* python/
Download
aws_main.py
andpython_provisioning.py
into thepython
directoryModify the main script and provide the needed information for the grant code in the section marked for change
Create an archive with the python folder
zip -r9 lhm-grant.zip python
Upload the archive to s3
Create CloudWatch canary from s3 bucket artifact
Notes:
to check the logs of a run you will download the artifacts archive from that run, unzip it and there should be a file called python_provisioning.log
Add Comment