AWS Amazon MQ

Amazon MQ is a managed message broker service for Apache ActiveMQ and RabbitMQ that streamlines setup, operation, and management of message brokers on AWS. With a few steps, Amazon MQ can provision your message broker with support for software version upgrades.

Requirements

Name

Version

terraform

>= 1.0

aws

>= 5.61

kubernetes

>= 2.7.1

random

>= 3.5.1

Providers

Name

Version

aws

>= 5.61

kubernetes

>= 2.7.1

random

>= 3.5.1

Modules

No modules.

Resources

Name

Type

aws_cloudwatch_log_resource_policy.mq_logs_publishing_policy

resource

aws_mq_broker.mq

resource

aws_mq_configuration.mq_configuration

resource

aws_security_group.mq

resource

kubernetes_secret.activemq_user_credentials

resource

random_password.password

resource

random_string.user

resource

aws_iam_policy_document.mq_logs_policy

data source

Inputs

Name

Description

Type

Default

Required

adapter_absolute_path

The adapter’s absolute path

string

"/adapters/queue/amqp/ArmoniK.Core.Adapters.Amqp.dll"

no

adapter_class_name

Name of the adapter’s class

string

"ArmoniK.Core.Adapters.Amqp.QueueBuilder"

no

apply_immediately

Specifies whether any broker modifications are applied immediately, or during the next maintenance window

bool

false

no

authentication_strategy

AWS MQ authentication strategy

string

"simple"

no

deployment_mode

AWS MQ deployment mode

string

"SINGLE_INSTANCE"

no

engine_type

AWS MQ engine type

string

n/a

yes

engine_version

AWS MQ engine version

string

n/a

yes

host_instance_type

AWS MQ host instance type

string

"mq.m5.xlarge"

no

kms_key_id

AWS KMS key id

string

null

no

name

AWS MQ service name

string

"armonik-mq"

no

namespace

Namespace of ArmoniK storage resources

string

"armonik"

no

password

User password

string

null

no

publicly_accessible

Whether to enable connections from applications outside of the VPC that hosts the broker’s subnets

bool

null

no

queue_storage_adapter

Name of the adapter’s

string

"ArmoniK.Adapters.Amqp.ObjectStorage"

no

scheme

The scheme for the AMQP

string

"AMQPS"

no

storage_type

AWS MQ storage type

string

"efs"

no

tags

Tags for resource

any

{}

no

username

User name

string

null

no

vpc_cidr_blocks

AWS VPC cidr block

list(string)

n/a

yes

vpc_id

AWS VPC id

string

n/a

yes

vpc_subnet_ids

AWS VPC subnet ids

list(string)

n/a

yes

Outputs

Name

Description

endpoint_host

AWS MQ endpoint host

endpoint_port

AWS MQ endpoint port

endpoint_url

AWS MQ endpoint urls

engine_type

Engine type

env

Elements to be set as environment variables

env_secret

Secrets to be set as environment variables

kms_key_id

ARN of KMS used for MQ

name

Name of MQ cluster

password

Password of Amazon MQ

username

Username of Amazon MQ

web_url

The URL of the broker’s Amazon MQ Web Console

Examples