Description
The inventory lists SQS queues declared in Terraform.
Potential impact
If messages expire or move to a dead-letter queue (DLQ), responders need to know which service handles them.
Remediation
Record the queue owner, senders and consumers. Review access, encryption, message retention and the DLQ destination.
Examples
The example adds tags to aws_sqs_queue.jobs. Check whether tag-based IAM policies change who can access it.
Before
hcl
resource "aws_sqs_queue" "jobs" {
name = "jobs-queue"
}
After
hcl
resource "aws_sqs_queue" "jobs" {
name = "jobs-queue"
tags = {
Service = "worker"
Environment = "production"
}
}