How to add custom Policies to SQS Queue in SAM

0

Hi everyone.

Can I add my custom Policies to my SQS queue in SAM template. I have tried but SAM give me error: Properties validation failed for resource QueueTemplateSplash with message: [#: extraneous key [Role] is not permitted] extraneous key [Role] is not permitted]

I have another question can create a Policies. And reused this Policies for new SQS I create in SAM Thanks for reading

1 個回答
0

If you want to create custom policies specific to your use case, you can write your own Amazon SQS policies and upload them using the SetQueueAttributes action.

This is how you do it. https://docs.amazonaws.cn/en_us/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html

profile picture
專家
已回答 2 個月前

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

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

回答問題指南