terraform/ecc-aws-079-iam_policy_changes_alarm_exist/red1/sns.tf (11 lines of code) (raw):

resource "aws_sns_topic" "this" { name = "079-sns-red1" } resource "aws_sqs_queue" "this" { name = "079-sqs-red" } resource "aws_sns_topic_subscription" "this" { topic_arn = aws_sns_topic.this.arn protocol = "sqs" endpoint = aws_sqs_queue.this.arn }