2015-05-15 01:17:18 +02:00
|
|
|
---
|
|
|
|
layout: "aws"
|
|
|
|
page_title: "AWS: sns_topic"
|
|
|
|
sidebar_current: "docs-aws-resource-sns-topic"
|
|
|
|
description: |-
|
|
|
|
Provides an SNS topic resource.
|
|
|
|
---
|
|
|
|
|
|
|
|
# aws\_sns\_topic
|
|
|
|
|
|
|
|
Provides an SNS topic resource
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "aws_sns_topic" "user_updates" {
|
|
|
|
name = "user-updates-topic"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) The friendly name for the SNS topic
|
2016-01-04 17:03:51 +01:00
|
|
|
* `display_name` - (Optional) The display name for the SNS topic
|
2015-05-15 01:17:18 +02:00
|
|
|
* `policy` - (Optional) The fully-formed AWS policy as JSON
|
|
|
|
* `delivery_policy` - (Optional) The SNS delivery policy
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `id` - The ARN of the SNS topic
|
2015-05-23 06:12:25 +02:00
|
|
|
* `arn` - The ARN of the SNS topic, as a more obvious property (clone of id)
|
2015-05-15 01:17:18 +02:00
|
|
|
|
2016-07-19 18:22:30 +02:00
|
|
|
## Import
|
|
|
|
|
|
|
|
SNS Topics can be imported using the `topic arn`, e.g.
|
|
|
|
|
|
|
|
```
|
|
|
|
terraform import aws_sns_topic.user_updates arn:aws:sns:us-west-2:0123456789012:my-topic
|
|
|
|
```
|