# ARN of the SNS topic for lambda event

**URL:** https://forum.serverless.com/t/arn-of-the-sns-topic-for-lambda-event/3936
**Category:** Serverless Framework
**Tags:** aws, lambda
**Created:** [March 6, 2018, 12:05am UTC](https://forum.serverless.com/t/arn-of-the-sns-topic-for-lambda-event/3936 "2018-03-06T00:05:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mdesilva](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@mdesilva](https://forum.serverless.com/u/mdesilva)
#### Post date: [March 6, 2018, 12:05am UTC](https://forum.serverless.com/t/arn-of-the-sns-topic-for-lambda-event/3936/1 "2018-03-06T00:05:21Z")

</div>

I need to pass ARN of the SNS topic created on the same stack to lambda event using like below, But I am getting an error. Isn’t that possible to give SNS topic using `Ref`? I know it can be done with `Fn::Join:` But `Ref` would be easier.

SNS Topic.

```
        ErrorLogNotificationSns:
          Type: AWS::SNS::Topic
          Properties:
            TopicName: ${self:service}-${self:provider.stage}-lambda-errors-log-notification
            DisplayName: Error Notification - Via Slack

```

Lambda

```
error-report:
    handler: handlers/errorReporting.notify
    memory: 512
    timeout: 10
    events:
      - http:
          path: error/notify
          method: POST
      - sns:
          arn:
            Ref: ErrorLogNotificationSns
```
