awscc_sns_topic (Resource)

The AWS::SNS::Topic resource creates a topic to which notifications can be published. One account can create a maximum of 100,000 standard topics and 1,000 FIFO topics. For more information, see endpoints and quotas in the General Reference. The structure of AUTHPARAMS depends on the .signature of the API request. For more information, see Examples of the complete Signature Version 4 signing process in the General Reference.

Example Usage

SNS-topic example

Description about the SNS-topic example

# The following resource creates an SNS Topic:
resource "awscc_sns_topic" "sns_example" {
  topic_name = "sns-example-topic"

  tags = [{
    key   = "Modified By"
    value = "AWSCC"
  }]
}

SNS-Fifo-topic example

Description about the SNS-topic example

# The following resource creates an SNS First-In-First-Out (FIFO) Topic:
# Note: FIFO topic names must end with .fifo
resource "awscc_sns_topic" "sns_fifo_example" {
  topic_name                  = "sns-example.fifo"
  fifo_topic                  = true
  content_based_deduplication = true

  tags = [{
    key   = "Modified By"
    value = "AWSCC"
  }]
}

Schema

Optional

Read-Only

Nested Schema for delivery_status_logging

Required:

Optional:

Nested Schema for subscription

Required:

Nested Schema for tags

Required:

Import

Import is supported using the following syntax:

$ terraform import awscc_sns_topic.example <resource ID>