terraform/ecc-aws-099-route_table_changes_alarm_exists/green/sns.tf (11 lines of code) (raw):

resource "aws_sns_topic" "this" { name = "099-sns-green" } resource "aws_sqs_queue" "this" { name = "099-sqs-green" } resource "aws_sns_topic_subscription" "this" { topic_arn = aws_sns_topic.this.arn protocol = "sqs" endpoint = aws_sqs_queue.this.arn }