sqs-queue

dod-iac/sqs-queue/aws

Terraform Module HCL AWS

An AWS SQS Queue

Install

module "sqs-queue" {
source = "dod-iac/sqs-queue/aws"
version = "1.0.4"
}
⭐ Source on GitHub 📦 Registry page

README

Usage Creates an AWS SQS queue. ``hcl module "sqs_queue" { source = "dod-iac/sqs-queue/aws" name = format("app-%s-%s", var.application, var.environment) tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` Creates an AWS SQS queue with messages encrypted using a custom KMS key. `hcl module "sqs_kms_key" { source = "dod-iac/sqs-kms-key/aws" name = format("alias/app-%s-sqs-%s", var.application, var.environment) description = format("A KMS key used to encrypt messages in SQS queues for %s:%s.", var.application, var.environment) principals = [aws_iam_role.main.arn] tags = local.project_tags } data "aws_iam_policy_document" "policy" { policy_id = "queue-policy" statement { sid = "AllowPrincipals" actions = [ "sqs:SendMessage", "sqs:GetQueueAttribut

Inputs (8)

NameTypeDescriptionDefault
namestringThe name of the SQS queue. required
policystringThe JSON policy for the SQS queue.""
source_queueslist(string)The ARN of the queues that use this queue as a dead-letter queue.[]
tagsmap(string)Tags applied to the SQS queue.{}
visibility_timeout_secondsnumberThe visibility timeout for the queue. An integer from 0 to 43200 (12 hours).30
dead_letter_queuestringThe ARN of the dead-letter queue.""
kms_key_arnstringThe ARN of the KMS key used to encrypt messages at-rest.""
max_receive_countnumberThe maximum number of receives for a message before it is moved to the dead-lett10

Outputs (2)

arn — The Amazon Resource Name (ARN) of the queue.
url — The url of the queue.

Resources (1)

aws_sqs_queue

Details

FrameworkTerraform Module
LanguageHCL
Version1.0.4
Cloud AWS
★ Stars1
Forks3
Total downloads6.0k
Inputs8
Outputs2
Resources1
Examples5
LicenseNOASSERTION
Namespacedod-iac
Updated

OpenSSF Scorecard

2.8/ 10 (2026-03-09)
Binary-Artifacts
10
License
9
Code-Review
3
Maintained
0
CII-Best-Practices
0
Security-Policy
0
Fuzzing
0
SAST
0
Packaging
-1
Token-Permissions
-1
Dangerous-Workflow
-1
Pinned-Dependencies
-1
View on OpenSSF →