Send slack notification if aws-nuke fails#9
Conversation
Co-Authored-By: Alex Lescionok <alex.lescionok@madetech.com>
| data "aws_iam_policy_document" "sns_logging" { | ||
| statement { | ||
| actions = ["logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents"] | ||
| resources = ["*"] |
There was a problem hiding this comment.
Could we restrict the resources further if we know the pattern?
|
This looks nice. I would be interested to know the reasoning for choosing the SNS + Lambda route over just using curl or similar to post the notification direct from success or failed steps in the pipeline. |
We started this a little while back, so I can't remember if there was further reasoning behind this - we wanted to decouple the failure handling logic away from the CodeBuild project's |
|
To be honest I'm not the biggest fan of the amount of moving parts in the current SNS+Lambda solution. curl from buildspec.yaml is elegant, I'll give that a try. |
Order of operations to land this (I think?):
/sandbox-nuke/slack-webhook(not managed by terraform, but required by it)terraform applyin one accountterraform applyfor realsies