{"id":29019625,"url":"https://github.com/senora-dev/terraform-aws-sqs","last_synced_at":"2026-02-19T01:04:57.248Z","repository":{"id":301182214,"uuid":"1003177283","full_name":"Senora-dev/terraform-aws-sqs","owner":"Senora-dev","description":"This Terraform module creates an Amazon SQS (Simple Queue Service) queue with optional policies and configurations.","archived":false,"fork":false,"pushed_at":"2025-06-25T14:49:57.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T15:37:15.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Senora-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-16T18:39:26.000Z","updated_at":"2025-06-25T14:37:55.000Z","dependencies_parsed_at":"2025-06-25T15:37:18.025Z","dependency_job_id":"e455e568-ab48-458c-aa9d-160db6d19fd9","html_url":"https://github.com/Senora-dev/terraform-aws-sqs","commit_stats":null,"previous_names":["senora-dev/terraform-aws-sqs"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Senora-dev/terraform-aws-sqs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-sqs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-sqs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-sqs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-sqs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Senora-dev","download_url":"https://codeload.github.com/Senora-dev/terraform-aws-sqs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-sqs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014289,"owners_count":26085488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T00:31:23.244Z","updated_at":"2025-10-13T08:15:53.679Z","avatar_url":"https://github.com/Senora-dev.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS SQS Terraform Module\n\nThis Terraform module creates an Amazon SQS (Simple Queue Service) queue with optional policies and configurations.\n\n## Features\n\n- Create standard or FIFO queues\n- Configure queue policies\n- Set up Dead Letter Queues (DLQ)\n- Configure message retention and visibility timeout\n- Support for KMS encryption\n- Tagging support\n\n## Usage\n\n### Basic Usage\n\n```hcl\nmodule \"sqs\" {\n  source = \"Senora-dev/sqs/aws\"\n\n  name = \"my-queue\"\n}\n```\n\n### Complete Usage\n\n```hcl\n# Create a Dead Letter Queue\nmodule \"dlq\" {\n  source = \"path/to/module\"\n\n  name = \"my-dlq\"\n}\n\n# Create the main queue with DLQ\nmodule \"sqs\" {\n  source = \"path/to/module\"\n\n  name = \"my-queue\"\n  visibility_timeout_seconds = 30\n  message_retention_seconds  = 345600\n  max_message_size          = 262144\n  delay_seconds             = 0\n  receive_wait_time_seconds = 0\n\n  create_queue_policy = true\n  queue_policy = jsonencode({\n    Version = \"2012-10-17\"\n    Statement = [\n      {\n        Effect = \"Allow\"\n        Principal = {\n          Service = \"s3.amazonaws.com\"\n        }\n        Action = [\n          \"sqs:SendMessage\"\n        ]\n        Resource = \"*\"\n        Condition = {\n          ArnLike = {\n            \"aws:SourceArn\": \"arn:aws:s3:::my-bucket\"\n          }\n        }\n      }\n    ]\n  })\n\n  create_redrive_policy = true\n  redrive_policy = jsonencode({\n    deadLetterTargetArn = module.dlq.queue_arn\n    maxReceiveCount     = 5\n  })\n\n  tags = {\n    Environment = \"production\"\n    Project     = \"my-project\"\n  }\n}\n```\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| terraform | \u003e= 0.13.0 |\n| aws | \u003e= 3.0 |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| name | The name of the queue | string | null | no |\n| name_prefix | The prefix to use for the queue name | string | null | no |\n| visibility_timeout_seconds | The visibility timeout for the queue in seconds | number | 30 | no |\n| message_retention_seconds | The number of seconds Amazon SQS retains a message | number | 345600 | no |\n| max_message_size | The limit of how many bytes a message can contain before Amazon SQS rejects it | number | 262144 | no |\n| delay_seconds | The time in seconds that the delivery of all messages in the queue will be delayed | number | 0 | no |\n| receive_wait_time_seconds | The time for which a ReceiveMessage call will wait for a message to arrive | number | 0 | no |\n| policy | The JSON policy for the queue | string | null | no |\n| redrive_policy | The JSON policy to set up the Dead Letter Queue | string | null | no |\n| fifo_queue | Boolean designating a FIFO queue | bool | false | no |\n| content_based_deduplication | Enables content-based deduplication for FIFO queues | bool | false | no |\n| deduplication_scope | Specifies whether message deduplication occurs at the message group or queue level | string | null | no |\n| fifo_throughput_limit | Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group ID | string | null | no |\n| kms_master_key_id | The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK | string | null | no |\n| kms_data_key_reuse_period_seconds | The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again | number | 300 | no |\n| tags | A map of tags to add to all resources | map(string) | {} | no |\n| create_queue_policy | Whether to create a queue policy | bool | false | no |\n| queue_policy | The JSON policy for the queue | string | null | no |\n| create_redrive_allow_policy | Whether to create a redrive allow policy | bool | false | no |\n| redrive_allow_policy | The JSON policy to set up the Dead Letter Queue redrive allow policy | string | null | no |\n| create_redrive_policy | Whether to create a redrive policy | bool | false | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| queue_url | The URL of the created Amazon SQS queue |\n| queue_arn | The ARN of the created Amazon SQS queue |\n| queue_name | The name of the created Amazon SQS queue |\n| queue_id | The ID of the created Amazon SQS queue |\n\n## Examples\n\n- [Basic Example](examples/basic/main.tf) - Creates a simple SQS queue\n- [Complete Example](examples/complete/main.tf) - Creates an SQS queue with policies and DLQ\n\n## Notes\n\n1. For FIFO queues, the queue name must end with `.fifo`\n2. When using content-based deduplication, make sure to set `fifo_queue` to `true`\n3. The `queue_policy` should be a valid JSON string containing the IAM policy\n4. When using a DLQ, make sure to create the DLQ first and reference its ARN in the redrive policy\n\n## License\n\nMIT Licensed. See LICENSE for full details. \n\n## Maintainers\n\nThis module is maintained by [Senora.dev](https://senora.dev). ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenora-dev%2Fterraform-aws-sqs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsenora-dev%2Fterraform-aws-sqs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenora-dev%2Fterraform-aws-sqs/lists"}