» aws_sns_topic

Provides an SNS topic resource

» Example Usage

resource "aws_sns_topic" "user_updates" {
  name = "user-updates-topic"
}

» Message Delivery Status Arguments

The <endpoint>_success_feedback_role_arn and <endpoint>_failure_feedback_role_arn arguments are used to give Amazon SNS write access to use CloudWatch Logs on your behalf. The <endpoint>_success_feedback_sample_rate argument is for specifying the sample rate percentage (0-100) of successfully delivered messages. After you configure the <endpoint>_failure_feedback_role_arn argument, then all failed message deliveries generate CloudWatch Logs.

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

  • id - The ARN of the SNS topic
  • arn - The ARN of the SNS topic, as a more obvious property (clone of id)

» 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