Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Needed files

How to create the Canary

  1. Create a python virtualenv

    mkdir lhm-grant
    cd lhm-grant
    python3 -m venv .venv
    source .venv/bin/activate
  2. Download the requirements.txt into the created lhm-grant folder

  3. Install required packages

    pip install -r requirements.txt
  4. Copy all the installed libraries into a folder called python

    mkdir python
    cp -rfv .venv/lib/python3.7/site-packages/* python/
  5. Download aws_main.py and python_provisioning.py into the python directory

  6. Modify the main script and provide the needed information for the grant code in the section marked for change

  7. Create an archive with the python folder

    zip -r9 lhm-grant.zip python
  8. Upload the archive to s3

  9. 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

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.