# Configure aws sns handler

**URL:** <https://discourse.sensu.io/t/configure-aws-sns-handler/1082>\
**Category:** Sensu Plugins\
**Tags:** keepalives, handlers\
**Created:** [February 6, 2019, 12:30pm UTC](https://discourse.sensu.io/t/configure-aws-sns-handler/1082 "2019-02-06T12:30:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexg](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexg](https://discourse.sensu.io/u/alexg)\
**Post date:** [February 6, 2019, 12:30pm UTC](https://discourse.sensu.io/t/configure-aws-sns-handler/1082/1 "2019-02-06T12:30:34Z")

</div>

hi guys  
I have already slack handler witch working fine, but I want to add SNS handler only for keepalive check

I have changed in handler-sns.rb file the region from us-east-1 to Ohio us-east-2, there my SNS topic, I create sns\_handler.json file:

```
# sns_handler.json
{
  "handlers": {
    "sns_cleanup_termination": {
      "type": "pipe",
      "command": "/var/lib/sensu/handler-sns.rb",
      "severites": ["critical", "unknown"],
      "sns": {
        "topic_arn": "arn:aws:sns:us-east-2:xxxxxxxxxxxxxxxxxxxxxxxx",
        "region": "us-east-2",
        "access_key": "xxxxxxxxxxxxxxxxxxxx",
        "secret_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
} 

```

and keep\_alive\_sns.json file

```
#keep_alive_sns.json file 
{
  "type": "Handler",
  "api_version": "core/v2",
  "metadata" : {
    "name": "keepalive",
    "namespace": "default"
  },
  "spec": {
    "type": "set",
    "handlers": [
      "sns_cleanup_termination"
    ]
  }
}

```

But without success  
Please Advice

---

<div class="post-metadata">

**Author:** ![aaronsachs](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/aaronsachs/32/47_2.png) [@aaronsachs](https://discourse.sensu.io/u/aaronsachs)\
**Post date:** [February 6, 2019, 2:32pm UTC](https://discourse.sensu.io/t/configure-aws-sns-handler/1082/2 "2019-02-06T14:32:18Z")

</div>

@alexg is this for Sensu Go, or Core?
