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

Placeholder description: @stephengeller created this with repo-genesis

Notifications You must be signed in to change notification settings

guardian/tag-janitor

Repository files navigation

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

About

Placeholder description: @stephengeller created this with repo-genesis

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published