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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则