2017-02-21 16:47:48 +01:00
|
|
|
---
|
|
|
|
layout: "aws"
|
2017-03-13 17:52:22 +01:00
|
|
|
page_title: "AWS: aws_sns_topic"
|
2017-02-21 16:47:48 +01:00
|
|
|
sidebar_current: "docs-aws-datasource-sns-topic"
|
|
|
|
description: |-
|
|
|
|
Get information on a Amazon Simple Notification Service (SNS) Topic
|
|
|
|
---
|
|
|
|
|
|
|
|
# aws\_sns\_topic
|
|
|
|
|
|
|
|
Use this data source to get the ARN of a topic in AWS Simple Notification
|
|
|
|
Service (SNS). By using this data source, you can reference SNS topics
|
|
|
|
without having to hard code the ARNs as input.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-07 17:54:28 +02:00
|
|
|
```hcl
|
2017-02-21 16:47:48 +01:00
|
|
|
data "aws_sns_topic" "example" {
|
|
|
|
name = "an_example_topic"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
* `name` - (Required) The friendly name of the topic to match.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
* `arn` - Set to the ARN of the found topic, suitable for referencing in other resources that support SNS topics.
|