Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Latest commit

 

History

History
48 lines (32 loc) · 1.13 KB

README.adoc

File metadata and controls

48 lines (32 loc) · 1.13 KB

Tag Janitor

What is it

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:

  1. Queries Prism for instances

  2. Checks which ones are missing the required tags

  3. Notifies the relevant owners of those instances via Anghammarad

How to run locally

If you want to run this locally, you will need to:

  1. Set up your environment by creating a .env file in the lambda directory.

  2. 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!

How to run the tests

Install all dependencies and run the tests from the lamdba directory:

$ cd lambda
$ yarn # installs dependencies
$ yarn test

How to deploy

Deploy this app through TeamCity and RiffRaff. See what CI is doing in scripts/ci.sh