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 Answer
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
EXPERT
answered 4 days ago