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 年前檢視次數 1116 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南