CloudWatch Event that targets SQS Queue fails to work


According to this article it’s possible to set SQS as target for scheduled CloudWatch event:

I’ve created a simple Cloud Formation template that aims to trigger CloudWatch event each minute so the new message should appear in SQS, but something is missing as there are no messages in SQS.

The code:


What can be wrong there? Should I add a queue listener to make messages appear?

Question #2:

Docs about CloudWatch Event Rule Target declare that Id is a required field:

Though AWS::SQS::Queue has no such property at all (only Name is present):

What should be put to CloudWatch Event Rule Target Id property when SQS is used as a target?

Many thanks in advance.


The missing piece in my template was AWS::SQS::QueuePolicy.

The working template:

Leave a Reply