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

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