ministryofjustice / analytical-platform

Analytical Platform • This repository is defined and managed in Terraform
https://docs.analytical-platform.service.justice.gov.uk
MIT License
8 stars 4 forks source link

😈 Send Notification to Main Channel on Failed Terraform Applies #4576

Closed julialawrence closed 1 day ago

julialawrence commented 1 week ago

User Story

As an AP Engineer, I would like to be prompted when a terraform apply fails after a merge so the code can be fixed as quickly a possible.

Value / Purpose

This will allow us to maintain our main repository in a deployable state always.

Useful Contacts

Analytcal Platform Team

User Types

Ops Engineers

Hypothesis

If we are promptly notified of failures this will improve the overall posture of our platform

Proposal

Add a slack notification when a terraform apply fails. If we limit it to applies only we should minimise spam.

Additional Information

No response

Definition of Done

Gary-H9 commented 1 week ago

Draft PR created. Documented the process for future use, will share this in #github-community when I've confirmed this process works.

Gary-H9 commented 1 day ago

PR merged with slight alterations courtesy of @jacobwoffenden