sqs-with-dlq

damacus/sqs-with-dlq/aws

Terraform Module HCL AWS

Terraform Module for creating an SQS queue and an accompanying dead letter queue

Install
module "sqs-with-dlq" {
source = "damacus/sqs-with-dlq/aws"
version = "1.0.4"
}
plain text: /constructs/tfmod-damacus-sqs-with-dlq-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-module-sqs Terraform Module for creating an SQS queue and an accompanying dead letter queue. This module automatically adds: - .fifo if a fifo queue is selected - CloudWatch alarm for items on the dead letter queue - CloudWatch alarm for large numbers of items on a queue - A default policy to the queue - Allows for easy adding of additional accounts to read/write to the queue - By default enables encrypted queues using the default account key (overridable) Providers | Name | Version | | ---- | ------- | | aws | n/a | Inputs | Name | Description | Type | Default | Required | | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Inputs (14)
NameTypeDescriptionDefault
namestringThis is the human-readable name of the queue. If omitted, Terraform will assign required
kms_master_key_id_sqsstringThe ID of an AWS-managed customer master key (CMK) for Amazon SQS or a Customer "alias/aws/sqs"
max_message_sizenumberThe limit of how many bytes a message can contain before Amazon SQS rejects it. 262144
allowed_arnslist(any)A list of AWS account IDs allowed to access this resourcenull
allowed_items_maxnumberThe maximum number of items allowed on the SQS queue before it triggers an alarm50
message_retention_secondsnumberThe number of seconds Amazon SQS retains a message. Integer representing secondsnull
visibility_timeout_secondsnumberThe visibility timeout for the queue. An integer from 0 to 43200 (12 hours)null
content_based_deduplicationboolEnables content-based deduplication for FIFO queuesfalse
tagsmap(string)A mapping of tags to assign to all resources{}
fifo_queueboolBoolean designating a FIFO queuefalse
kms_data_key_reuse_period_secondsnumberThe length of time, in seconds, for which Amazon SQS can reuse a data key to enc300
kms_master_key_id_snsstringThe ID of an AWS-managed customer master key (CMK) for Amazon SNS or a Customer "alias/aws/sns"
redrive_policystringThe JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specif""
alarm_sns_topic_arnstringARN of the SNS topic for alarm notifactionsnull
Outputs (2)
queue
deadletter_queue
Resources (4)
aws_cloudwatch_metric_alarmaws_sns_topicaws_sqs_queueaws_sqs_queue_policy
Topics & Tags
hacktoberfest
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.4
Cloud AWS
★ Stars15
Forks12
Total downloads15.5k
Inputs14
Outputs2
Resources4
Examples1
LicenseMIT
Namespacedamacus
Updated