Skip to content

ministryofjustice/cloud-platform-test-cluster-reminder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloud-platform-test-cluster-reminder

repo standards badge

About

cloud-platform-test-cluster-reminder is a simple service to automate Cloud Platform team test cluster cleanup reminders. It calls the AWS EKS ListClusters API and pushes the list of (test) clusters currently running in the target AWS account.

Use

Besides AWS credentials for API calls, you must pass in the following environment variables to the container runtime:

  • SLACK_WEBHOOK_URL
  • SLACK_CHANNEL

ie:

docker run -e SLACK_WEBHOOK_URL='https://hooks.slack.com/services/1234/abcd' -e SLACK_CHANNEL='#my-slack-channel` -e AWS_ACCESS_KEY_ID='xxxxx' -e AWS_SECRET_ACCESS_KEY='xxxxx' -it cluster-reminder

Concourse job

Currently configured to run on a morning/afternoon schedule within the Concourse reporting pipeline