No requirements.
Basic usage of this module is as follows:
module "example" {
source = "<module-path>"
# Required variables
name =
# Optional variables
create_dlq = true
dlq_content_based_deduplication = false
dlq_policy = ""
dlq_retention_time = 1209600
dlq_visibility_timeout = 600
fifo = false
main_content_based_deduplication = false
main_delay_time = 0
main_policy = ""
main_retention_time = 1209600
main_visibility_timeout = 600
max_redrive = 3
name_dlq = ""
name_main = ""
prefix = ""
suffix_dlq = "-dlq"
suffix_main = "-main"
tags = {}
}
Name | Type |
---|---|
aws_sqs_queue.dlq | resource |
aws_sqs_queue.main | resource |
aws_sqs_queue_policy.dlq | resource |
aws_caller_identity.current | data source |
aws_iam_policy_document.dlq | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
create_dlq | True if we want to auto create DLQ with SQS queue | bool |
true |
no |
dlq_content_based_deduplication | Turn on content based deduplication | bool |
false |
no |
dlq_policy | Optional queue policy to attach to DLQ | string |
"" |
no |
dlq_retention_time | Message retention time in the dead letter queue (in seconds) | number |
1209600 |
no |
dlq_visibility_timeout | Message visibility timeout in the dead letter queue (in seconds) | number |
600 |
no |
fifo | Set queue type to FIFO | bool |
false |
no |
main_content_based_deduplication | Turn on content based deduplication | bool |
false |
no |
main_delay_time | Message delay for the main queue (in seconds) | number |
0 |
no |
main_policy | Optional queues policy to attach to main queue | string |
"" |
no |
main_retention_time | Message retention time in the main queue (in seconds) | number |
1209600 |
no |
main_visibility_timeout | Message visibility timeout in the main queue (in seconds) | number |
600 |
no |
max_redrive | Maximum count of dead letter queue redrives | number |
3 |
no |
name | Name of the SQS queues | string |
n/a | yes |
name_dlq | Custom name for the dead letter queue (non-automated naming) | string |
"" |
no |
name_main | Custom name for the main queue (non-automated naming) | string |
"" |
no |
prefix | Prefix for both of the queues | string |
"" |
no |
suffix_dlq | Suffix for the DLQ | string |
"-dlq" |
no |
suffix_main | Suffix for the main queue | string |
"-main" |
no |
tags | AWS tags to apply to the queues | map(string) |
{} |
no |
Name | Description |
---|---|
sqs_dlq_arn | n/a |
sqs_dlq_id | n/a |
sqs_dlq_name | n/a |
sqs_dlq_url | n/a |
sqs_main_arn | n/a |
sqs_main_id | n/a |
sqs_main_name | n/a |
sqs_main_url | n/a |