SNS
Terraform module to create AWS SNS resources
Inputs
28
application_feedbackoptionalobject({ failure_role_arn = optional(string) success_role_arn = optional(string)…Map of IAM role ARNs and sample rate for success and failure feedback
{}archive_policyoptionalstringThe message archive policy for FIFO topics
nullcontent_based_deduplicationoptionalboolBoolean indicating whether or not to enable content-based deduplication for FIFO topics
falsecreateoptionalboolDetermines whether resources will be created (affects all resources)
truecreate_subscriptionoptionalboolDetermines whether an SNS subscription is created
truecreate_topic_policyoptionalboolDetermines whether an SNS topic policy is created
truedata_protection_policyoptionalstringA map of data protection policy statements
nulldelivery_policyoptionalstringThe SNS delivery policy
nulldisplay_nameoptionalstringThe display name for the SNS topic
nullenable_default_topic_policyoptionalboolSpecifies whether to enable the default topic policy. Defaults to `true`
truefifo_throughput_scopeoptionalstringEnables higher throughput for FIFO topics by adjusting the scope of deduplication. This attribute has two possible values, Topic and MessageGroup
nullfifo_topicoptionalboolBoolean indicating whether or not to create a FIFO (first-in-first-out) topic
falsefirehose_feedbackoptionalobject({ failure_role_arn = optional(string) success_role_arn = optional(string)…Map of IAM role ARNs and sample rate for success and failure feedback
{}http_feedbackoptionalobject({ failure_role_arn = optional(string) success_role_arn = optional(string)…Map of IAM role ARNs and sample rate for success and failure feedback
{}kms_master_key_idoptionalstringThe ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK
nulllambda_feedbackoptionalobject({ failure_role_arn = optional(string) success_role_arn = optional(string)…Map of IAM role ARNs and sample rate for success and failure feedback
{}nameoptionalstringThe name of the SNS topic to create
nulloverride_topic_policy_documentsoptionallist(string)List of IAM policy documents that are merged together into the exported document. In merging, statements with non-blank `sid`s will override statements with the same `sid`
[]regionoptionalstringRegion where the resource(s) will be managed. Defaults to the Region set in the provider configuration
nullsignature_versionoptionalnumberIf SignatureVersion should be `1` (`SHA1`) or `2` (`SHA256`). The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS
nullsource_topic_policy_documentsoptionallist(string)List of IAM policy documents that are merged together into the exported document. Statements must have unique `sid`s
[]sqs_feedbackoptionalobject({ failure_role_arn = optional(string) success_role_arn = optional(string)…Map of IAM role ARNs and sample rate for success and failure feedback
{}subscriptionsoptionalmap(object({ confirmation_timeout_in_minutes = optional(number) delivery_policy …A map of subscription definitions to create
{}tagsoptionalmap(string)A map of tags to add to all resources
{}topic_policyoptionalstringAn externally created fully-formed AWS policy as JSON
nulltopic_policy_statementsoptionalmap(object({ sid = optional(string) actions = optional(list(string)) not_actions…A map of IAM policy [statements](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document#statement) for custom permission usage
nulltracing_configoptionalstringTracing mode of an Amazon SNS topic. Valid values: `PassThrough`, `Active`
nulluse_name_prefixoptionalboolDetermines whether `name` is used as a prefix
falseAll 28 are optional — the module deploys with none of them set.
Outputs
6
subscriptionsMap of subscriptions created and their attributes
topic_arnThe ARN of the SNS topic, as a more obvious property (clone of id)
topic_beginning_archive_timeThe oldest timestamp at which a FIFO topic subscriber can start a replay
topic_idThe ARN of the SNS topic
topic_nameThe name of the topic
topic_ownerThe AWS Account ID of the SNS topic owner
What the agent wires into the next module. An edge on the architecture diagram is one of these consumed by something else.