AWS Amazon MQ Configuration

This page shows how to write Terraform and CloudFormation for Amazon MQ Configuration and write them securely.

aws_mq_configuration (Terraform)

The Configuration in Amazon MQ can be configured in Terraform with the resource name aws_mq_configuration. The following sections describe 4 examples of how to use the resource and its parameters.

Example Usage from GitHub

resource "aws_mq_configuration" "my_aws_mq_configuration" {
  description    = "Example Configuration"
  name           = "example"
  engine_type    = "ActiveMQ"
  engine_version = "5.15.0"

resource "aws_mq_configuration" "broker" {
  description    = var.my_config["description"]
  name           = var.my_config["name"]
  engine_type    = var.my_config["engine_type"]
  engine_version = var.my_config["engine_version"]

resource "aws_mq_configuration" "this" {
  data           =
  description    = var.description
  engine_type    = var.engine_type
  engine_version = var.engine_version
  name           =
resource "aws_mq_configuration" "my_aws_mq_configuration" {
  description    = "Example Configuration"
  name           = "example"
  engine_type    = "ActiveMQ"
  engine_version = "5.15.0"


Explanation in Terraform Registry

Provides an MQ Configuration Resource. For more information on Amazon MQ, see Amazon MQ documentation.

AWS::AmazonMQ::Configuration (CloudFormation)

The Configuration in AmazonMQ can be configured in CloudFormation with the resource name AWS::AmazonMQ::Configuration. The following sections describe how to use the resource and its parameters.


Explanation in CloudFormation Registry

Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).

Note Does not apply to RabbitMQ brokers.

Frequently asked questions

What is AWS Amazon MQ Configuration?

AWS Amazon MQ Configuration is a resource for Amazon MQ of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon MQ Configuration?

For Terraform, the gilyas/infracost, jsdads11/terra-artemis-amq and niveklabs/aws source code examples are useful. See the Terraform Example section for further details.