Creating an SNS Topic Resource by CF Template Not Working

0

Really strange error I'm running into today when trying to create an SNS Topic with subscription as a part of our CloudFormation Stack. When I deploy my CF template to create the SNS resource the TopicArn property that is generated is coming out with URL encoded characters so all of the colons are replaced with their URL percent encoding and I get the following error when I navigate to the Topic:

Couldn't retrieve topic attributes.
Error code: InvalidParameter - Error message: Invalid parameter: TopicArn Reason: An ARN must have at least 6 elements, not 1

It doesn't matter if I try to give the SNS Topic a TopicName or let it generate the name. I get the same problem. The stack creates successfully with no errors but the Topic shows the error.

Anybody have any ideas?
Thanks,
Tim

Edited by: timothydog76 on Apr 24, 2020 1:27 PM

已提问 4 年前1117 查看次数
1 回答
0

Well I figured out what the problem was. The SNS Topic resource was actually creating just fine. I could actually find the working one if I manually searched for it in the SNS console page. My problem is I was trying to open resource from the CloudFormation stack. Clicking on the link it gives you in Resources tab in the stack was URL encoding the link. Oops.

已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则