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년 전

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

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

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

관련 콘텐츠