By using AWS re:Post, you agree to the Terms of Use

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

asked 2 years ago178 views
1 Answer
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.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions