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.
data "aws_sns_topic" "example" { name = "an_example_topic" }
name
- (Required) The friendly name of the topic to match. arn
- Set to the ARN of the found topic, suitable for referencing in other resources that support SNS topics.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/sns_topic.html