Skip to main content
Version: v1.9

AWS SQS

Description

Terraform module which creates SQS resources on AWS

Specification

Properties

NameDescriptionTypeRequiredDefault
content_based_deduplicationEnables content-based deduplication for FIFO queuesboolfalse
createWhether to create SQS queueboolfalse
deduplication_scopeSpecifies whether message deduplication occurs at the message group or queue levelstringfalse
delay_secondsThe time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes)numberfalse
fifo_queueBoolean designating a FIFO queueboolfalse
fifo_throughput_limitSpecifies whether the FIFO queue throughput quota applies to the entire queue or per message groupstringfalse
kms_data_key_reuse_period_secondsThe length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours)numberfalse
kms_master_key_idThe ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMKstringfalse
max_message_sizeThe limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB)numberfalse
message_retention_secondsThe number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days)numberfalse
nameThis is the human-readable name of the queue. If omitted, Terraform will assign a random name.stringfalse
name_prefixA unique name beginning with the specified prefix.stringfalse
policyThe JSON policy for the SQS queuestringfalse
receive_wait_time_secondsThe time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds)numberfalse
redrive_allow_policyThe JSON policy to set up the Dead Letter Queue redrive permission, see AWS docs.stringfalse
redrive_policyThe JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying maxReceiveCount, you must specify it as an integer (5), and not a string ("5")stringfalse
tagsA mapping of tags to assign to all resourcesmap(string)false
visibility_timeout_secondsThe visibility timeout for the queue. An integer from 0 to 43200 (12 hours)numberfalse
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse