Many of the Guardian’s applications identify and interact with each other through looking up these three sets of tags:
-
Stack
-
Stage
-
App
This application:
-
Queries Prism for instances
-
Checks which ones are missing the required tags
-
Notifies the relevant owners of those instances via Anghammarad
If you want to run this locally, you will need to:
-
Set up your environment by creating a
.env
file in thelambda
directory. -
Ensure you have correct credentials for the AWS account that Anghammarad lives in
Then, install the dependencies and run the code:
$ cd lambda
$ yarn # install dependencies
$ yarn start # runs the handler locally
Or, run scripts/start.sh
to do this for you!
Install all dependencies and run the tests from the lamdba
directory:
$ cd lambda
$ yarn # installs dependencies
$ yarn test