tamu Posted June 2, 2020 Report Posted June 2, 2020 local/dev environment lo I am creating SNS and its topic preprod/prod lo already vere team vallu create chesaru How can my SQS access it in serverless.yml Quote
jai thuss Posted June 3, 2020 Report Posted June 3, 2020 your SQS (that you are using inside your lambda) needs to get access to the topic thats in different aws account. I think there has to be a role created specifying your account as a trusted entity and attach a policy with what all actions you may need to perform by providing your QUEUE arn. Or aa topic owner evaroo vallani aa topic policy ni update cheyyamani cheppu To enable the subscriber to subscribe to a topic, the topic owner must add the sns:Subscribe and topic ARN to the topic policy via the AWS Management Console, as follows: { "Version":"2012-10-17", "Id":"MyTopicSubscribePolicy", "Statement":[{ "Sid":"Allow-other-account-to-subscribe-to-topic", "Effect":"Allow", "Principal":{ "AWS":"Queue_Owner" }, "Action":"sns:Subscribe", "Resource":"arn:aws:sns:us-east-1:Topic_Owner:MainTopic" } ] } Quote
kathanayaka Posted June 3, 2020 Report Posted June 3, 2020 policy lo SQS,SNS access unte you can access the queue using the ARN Name kada? Quote
jai thuss Posted June 3, 2020 Report Posted June 3, 2020 6 minutes ago, kathanayaka said: policy lo SQS,SNS access unte you can access the queue using the ARN Name kada? aa Topic undi Vere account lo antunnadu kada .. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.