The EventBridge SQS rule is created but no messages are sent to the SQS queue. The rule only works when I log into the AWS console and manually click on “Edit” -> “Update”. When I do these steps, the rule works and my SQA queue is triggered.
It would be very nice if someone can help me with this issue!
It works if you “refresh” it manually via AWS web console, because in addition to creating the rule, AWS also creates needed privileges for putting messages into SQS by EventBridge rule.
For Lambda functions, you have to let the EventBridge Rule invoke the function itself. It can be done this way:
And for sure if you are using SQS, you need to do the same for SQS. I’m not really sure how you can achieve that, but my bet is, that AWS::SQS::QueuePolicy is way to go:
I was basing it on examples from AWS documentation:
Let us know what is the correct configuration for SQS, it might be useful in the future, because with SQS we can do the batch processing with EventBridge -> SQS -> Lambda architecture.
okay thank you very much for helping me. You have brought me quite a bit further!!
I had to change a little bit on your SQS Policy but the direction was fully right.
Because sharing is caring, I want to provide the solution for everyone.