Skip to content

dasmeta/terraform-aws-rabbitmq

Repository files navigation

terraform-aws-rabbitmq

This module creates AWS RabbitMQ broker. It also creates Security Group if you enable this functionality.

module "rabbitmq" {
  source = "dasmeta/modules/aws//modules/rabbitmq"

  broker_name        = "app-dev-mq"
  subnet_ids         = ["subnet-231dadsa344ds", "subnet-231dqweqsa344ds", "subnet-241dadsa344ds"]
  security_groups    = ["sg-asff234adasdd"]
  username           = "user-terraform"
  password           = "password@#$23da"
  engine_version     = "3.8.27"
  deployment_mode    = "SINGLE_INSTANCE"
  host_instance_type = "mq.t3.micro"
}

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

Name Source Version
security_group terraform-aws-modules/security-group/aws 4.16.0

Resources

Name Type
aws_cloudwatch_log_group.this resource
aws_mq_broker.mq resource

Inputs

Name Description Type Default Required
auto_minor_version_upgrade n/a bool true no
broker_cloudwatch_log_groups List of Log Groups which will be created for the broker instance. list(string)
[
"channel",
"connection",
"general"
]
no
broker_name n/a string n/a yes
cloudwatch_log_group_retention_in_days The number of days to retain CloudWatch logs for the DB instance number 30 no
create_security_group n/a bool false no
deployment_mode n/a string "CLUSTER_MULTI_AZ" no
enable_cloudwatch_logs n/a bool true no
engine_type n/a string "RabbitMQ" no
engine_version n/a string "3.8.11" no
host_instance_type n/a string "mq.m5.large" no
ingress_with_cidr_blocks n/a list(map(string)) [] no
maintenance_window_start_time n/a
object({
mw_day_of_week = string
mw_time_of_day = string
mw_time_zone = string
})
{
"mw_day_of_week": "SUNDAY",
"mw_time_of_day": "03:00",
"mw_time_zone": "UTC"
}
no
password n/a string n/a yes
publicly_accessible n/a bool false no
security_group_description n/a string "RabbitMQ security group description." no
security_group_name n/a string "RabbitMQ security group name." no
security_groups n/a list(string) [] no
storage_type n/a string "ebs" no
subnet_ids n/a any n/a yes
tags n/a map(any) {} no
username n/a string n/a yes
vpc_id n/a string "" no

Outputs

No outputs.