title: How to connect AWS Eventbridge to an SNS topic
body: <p>I want an SNS topic to trigger an Eventbridge event, so that I can invoke an ECS task. I have tried to connect an Eventbridge rule to an SNS topic as follows (this is my event pattern for the eventbridge rule):</p>
  <pre><code>{
    &quot;source&quot;: [
      &quot;aws.sns&quot;
    ],
    &quot;region&quot;: [
      &quot;eu-west-1&quot;
    ],
    &quot;resources&quot;: [
      &quot;arn:aws:sns:eu-west-1:xxx:myTestTopicForECS&quot;
    ]
  }
  </code></pre>
  <p>However, when I publish a message to this topic, the Eventbridge rule doesn't get triggered. I have tried to see if anyone else has this problem, but haven't been able to find anything. How do I solve this?</p>