https://github.com/opszero/terraform-aws-sqs
https://github.com/opszero/terraform-aws-sqs
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/opszero/terraform-aws-sqs
- Owner: opszero
- License: other
- Created: 2024-03-21T03:04:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T04:19:51.000Z (12 months ago)
- Last Synced: 2025-05-17T07:07:41.611Z (11 months ago)
- Language: HCL
- Size: 57.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Support: SUPPORT
Awesome Lists containing this project
README
# Terraform Aws sqs
## Table of Contents
- [Introduction](#introduction)
- [Usage](#usage)
- [Example](#Example)
- [Author](#Author)
- [License](#license)
- [Inputs](#inputs)
- [Outputs](#outputs)
## Introduction
This Terraform module creates an AWS sqs_distribution Service (sqs_distribution) along with additional configuration options.
## Usage
To use this module, you can include it in your Terraform configuration. Here's an example of how to use it:
## Examples
## Example: sqs_queues
```hcl
module "sqs_queues" {
source = "git::https://github.com/opszero/terraform-aws-sqs.git?ref=v1.0.1"
tags = {
Env = "Prod"
}
queues = {
"queues-1" = {
main_queue_retention_seconds = "1209600"
dlq_queue_retention_seconds = "1209600"
visibility_timeout_seconds = "60"
receive_wait_time_seconds = "10"
max_receive_count = 5
##cloudwatch_metric_alarm
cloudwatch_comparison_operator = "GreaterThanThreshold"
evaluation_periods = "1"
cloudwatch_metric_name = "ApproximateAgeOfOldestMessage"
cloudwatch_namespace = "AWS/SQS"
cloudwatch_statistic = "Maximum"
cloudwatch_threshold = 300
cloudwatch_alarm_description = "Alarm when the oldest message is older than 5 minutes"
cloudwatch_actions_enabled = true
##sns
protocol = "email"
endpoint_auto_confirms = true
raw_message_delivery = true
endpoint = "example@gmail.com"
}
}
}
```
## Example
For detailed examples on how to use this module, please refer to the [Examples](https://github.com/opszero/terraform-aws-sqs/tree/main/example) directory within this repository.
## Author
Your Name Replace **MIT** and **Cypik** with the appropriate license and your information. Feel free to expand this README with additional details or usage instructions as needed for your specific use case.
## License
This project is licensed under the **MIT** License - see the [LICENSE](https://github.com/opszero/terraform-aws-sqs/blob/main/LICENSE) file for details.
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >= 6.14.0 |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [enable\_redrive\_policy](#input\_enable\_redrive\_policy) | n/a | `bool` | `false` | no |
| [queues](#input\_queues) | Map of queue names and their properties | `any` | `{}` | no |
| [tags](#input\_tags) | tflint-ignore: terraform\_typed\_variables | `any` | n/a | yes |
## Resources
| Name | Type |
|------|------|
| [aws_cloudwatch_metric_alarm.oldest_message_alarm_main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_metric_alarm) | resource |
| [aws_sns_topic.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic) | resource |
| [aws_sns_topic_subscription.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_subscription) | resource |
| [aws_sqs_queue.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue) | resource |
| [aws_sqs_queue_policy.main_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue_policy) | resource |
## Outputs
| Name | Description |
|------|-------------|
| [sqs\_queue\_arn](#output\_sqs\_queue\_arn) | n/a |
| [sqs\_queue\_id](#output\_sqs\_queue\_id) | n/a |
# 🚀 Built by opsZero!
[opsZero](https://opszero.com) provides software and consulting for Cloud + AI. With our decade plus of experience scaling some of the world’s most innovative companies we have developed deep expertise in Kubernetes, DevOps, FinOps, and Compliance.
Our software and consulting solutions enable organizations to:
- migrate workloads to the Cloud
- setup compliance frameworks including SOC2, HIPAA, PCI-DSS, ITAR, FedRamp, CMMC, and more.
- FinOps solutions to reduce the cost of running Cloud workloads
- Kubernetes optimized for web scale and AI workloads
- finding underutilized Cloud resources
- setting up custom AI training and delivery
- building data integrations and scrapers
- modernizing onto modern ARM based processors
We do this with a high-touch support model where you:
- Get access to us on Slack, Microsoft Teams or Email
- Get 24/7 coverage of your infrastructure
- Get an accelerated migration to Kubernetes
Please [schedule a call](https://calendly.com/opszero-llc/discovery) if you need support.
