SNS Topic/Subscription created through Terraform not showing up

0

I'm trying to create SNS topics and subscriptions through Terraform and it appears to be successful when doing so. However, I can never see them in the GUI for some reason. I know that email subscriptions aren't fully supported through Terraform so I thought that may be the reason it's not showing up even though I receive the confirmation email, but I then tried another route using a CloudFormation template by following the steps in this link:

http://aws-cloud.guru/terraform-sns-topic-email-list/

Same issue though. Terraform says it created the SNS topic/subscription and I receive a confirmation email. But when I go under SNS in the GUI as my root account, I don't see any SNS topics. Here's the code for the first test case I did:

resource "aws_sns_topic" "sysadmin_alerts" {
  name            = "sysadmin-alerts-topic"
}

resource "aws_sns_topic_subscription" "sysadmin_alerts_email_target" {
  topic_arn = aws_sns_topic.sysadmin_alerts.arn
  protocol  = "email"
  endpoint  = "fake@email.com"
}

Is there something I'm missing in the process to create these via Terraform?

1개 답변
1
수락된 답변

Hi Gary,

Have you ensured that the region you are looking at in the console, and the region that terraform is deploying to match? If so, providing the output if your terraform apply command may be useful.

Oisian
답변함 2년 전
profile picture
전문가
검토됨 한 달 전
  • Well that was easy! I knew it had to be something obvious I was missing. ugh

    Thanks!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠