Skip to content

Latest commit

 

History

History

sns-fifo-topic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

sns-fifo-topic

This module creates following resources.

  • aws_sns_topic
  • aws_sns_topic_policy (optional)
  • aws_sns_topic_subscription (optional)

Requirements

Name Version
terraform >= 1.5
aws >= 5.5

Providers

Name Version
aws 5.19.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.10.0

Resources

Name Type
aws_sns_topic.this resource
aws_sns_topic_policy.this resource
aws_iam_policy_document.this data source

Inputs

Name Description Type Default Required
name (Required) The name of the SNS topic. Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long. For a FIFO (first-in-first-out) topic, the name must end with the .fifo suffix. string n/a yes
content_based_deduplication (Optional) Whether to enable default message deduplication based on message content. If set to false, a deduplication ID must be provided for every publish request. bool false no
display_name (Optional) The display name to use for a topic with SMS subscriptions. string "" no
encryption_at_rest (Optional) A configuration to encrypt at rest in the SNS topic. Amazon SNS provides in-transit encryption by default. Enabling server-side encryption adds at-rest encryption to your topic. Amazon SNS encrypts your message as soon as it is received. The message is decrypted immediately prior to delivery. encryption_at_rest as defined below.
(Optional) enabled - Whether to enable encryption at rest. Defaults to false.
(Optional) kms_key - The ID of AWS KMS CMK (Customer Master Key) used for the encryption.
object({
enabled = optional(bool, false)
kms_key = optional(string)
})
{} no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
policy (Optional) A valid policy JSON document. The resource-based policy defines who can publish or subscribe to the SNS topic. string null no
resource_group_description (Optional) The description of Resource Group. string "Managed by Terraform." no
resource_group_enabled (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. bool true no
resource_group_name (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws. string "" no
signature_version (Optional) 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. Defaults to 1. number 1 no
tags (Optional) A map of tags to add to all resources. map(string) {} no
xray_tracing_enabled (Optional) Whether to activate AWS X-Ray Active Tracing mode for the SNS topic. If set to Active, Amazon SNS will vend X-Ray segment data to topic owner account if the sampled flag in the tracing header is true. Defaults to false, and the topic passes through the tracing header it receives from an Amazon SNS publisher to its subscriptions. bool false no

Outputs

Name Description
arn The ARN of the SNS topic.
content_based_deduplication Whether to enable default message deduplication based on message content.
display_name The display name for a topic with SMS subscriptions.
encryption_at_rest A configuration to encrypt at rest in the SNS topic.
id The ID of the SNS topic.
name The name for the SNS topic.
owner The AWS Account ID of the SNS topic owner.
signature_version 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.
type The type of the SNS topic.
xray_tracing_enabled Whether to activate AWS X-Ray Active Tracing mode for the SNS topic.
z The list of log streams for the log group.
zz The list of log streams for the log group.