Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid parameter: TopicArn Reason: An ARN must have at least 6 elements #11

Open
dilip-ezops opened this issue Apr 15, 2021 · 5 comments

Comments

@dilip-ezops
Copy link

dilip-ezops commented Apr 15, 2021

Describe the bug

We are deploying landing page for our Marketplace integration. While deploying facing following issues:
Invalid parameter: TopicArn Reason: An ARN must have at
least 6 elements, not 1 (Service: AmazonSNS; Status Code:
400; Error Code: InvalidParameter; Request ID:
98904f2c-9377-56e1-b024-17dcd6a302ad; Proxy: null)User: arn:aws:iam::xxxxxxx:user/xxxxxx is
not authorized to perform: SNS:Subscribe on resource:
arn:aws:sns:us-east-1:287250355862:aws-mp-entitlement-
notification-XXXXXXXX (Service: AmazonSNS;
Status Code: 403; Error Code: AuthorizationError; Request
ID: da0cfc82-d12a-5dfd-b1a6-a472cb4f9071; Proxy: null)
To resolve this issue we commented out EntitlementSQSHandler block from template.yaml.

We were able to deploy the landing page. However when we tried to access web page. It displays following error:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

AccessDenied
Access Denied
Z9161D15XV37JFVH
zrlf9xukKblFljCwM3uMD0j60Vj54fQZrfoHNiXl7wvOVzMt7cwGzXJTN3CB/LJUE0fLVuDvGg0=

@vikramkapoor
Copy link

vikramkapoor commented May 9, 2021

@dilip-ezops We are facing exactly the same issue. Did you find any solution for this yet?

@vikramkapoor
Copy link

@dilip-ezops We are facing exactly the same issue. Did you find any solution for this yet?

I found that the fix is not to comment out the EntitlementSQSHandler block from template.yaml.

@dilip-ezops
Copy link
Author

@dilip-ezops We are facing exactly the same issue. Did you find any solution for this yet?

I found that the fix is not to comment out the EntitlementSQSHandler block from template.yaml.

@vikramkapoor I am still struggling with the same, need to provide cross-account access to cloudformation for SNS topic subscription

@vikramkapoor
Copy link

vikramkapoor commented May 11, 2021 via email

@AffiTheCreator
Copy link

Hi Everyone,

The issue you are facing is not a bug , there is an extra parameter you need to add when launching via sam.

In the README there is a table, this table contains TypeOfSaaSListing , here you can find the 3 options available (notice the default value).

Since most likely you are creating a SaaS subscription or Contract , in saas only you don't have the EntitlementSQS SNS only the subscription. The inverse is true for contracts only.

Since the default is both (saas and contract) and you only 1 type you get this error. You only provided 1 but it expected 2 and both need to follow arn:********

Hope this help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants