Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nivleshc/8fcf69a91beee4c6811759ecf2922445 to your computer and use it in GitHub Desktop.
Save nivleshc/8fcf69a91beee4c6811759ecf2922445 to your computer and use it in GitHub Desktop.
This gist is the fourth part of app_pipeline.tf from the blog-create-pipeline-to-deploy-terraform-code repository.
resource "aws_sns_topic" "app_pipeline_approval_requests" {
name = "${var.project}_${var.env}_app_pipeline_approval_requests"
}
resource "aws_sns_topic_subscription" "app_approver_subscription" {
topic_arn = aws_sns_topic.app_pipeline_approval_requests.arn
protocol = "email"
endpoint = var.app_approver_email
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment