This Terraform module creates an AWS sqs_distribution Service (sqs_distribution) along with additional configuration options.
To use this module, you can include it in your Terraform configuration. Here's an example of how to use it:
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"
}
}
}
For detailed examples on how to use this module, please refer to the Examples directory within this repository.
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.
This project is licensed under the MIT License - see the LICENSE file for details.
Name | Version |
---|---|
aws | >= 6.14.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
enable_redrive_policy | n/a | bool |
false |
no |
queues | Map of queue names and their properties | any |
{} |
no |
tags | tflint-ignore: terraform_typed_variables | any |
n/a | yes |
Name | Type |
---|---|
aws_cloudwatch_metric_alarm.oldest_message_alarm_main | resource |
aws_sns_topic.this | resource |
aws_sns_topic_subscription.this | resource |
aws_sqs_queue.main | resource |
aws_sqs_queue_policy.main_policy | resource |
Name | Description |
---|---|
sqs_queue_arn | n/a |
sqs_queue_id | n/a |
Since 2016 opsZero has been providing Kubernetes expertise to companies of all sizes on any Cloud. With a focus on AI and Compliance we can say we seen it all whether SOC2, HIPAA, PCI-DSS, ITAR, FedRAMP, CMMC we have you and your customers covered.
We provide support to organizations in the following ways:
- Modernize or Migrate to Kubernetes
- Cloud Infrastructure with Kubernetes on AWS, Azure, Google Cloud, or Bare Metal
- Building AI and Data Pipelines on Kubernetes
- Optimizing Existing Kubernetes Workloads
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 if you need support.