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 = var.data
description = var.description
engine_type = var.engine_type
engine_version = var.engine_version
name = var.name
resource "aws_mq_configuration" "my_aws_mq_configuration" {
description = "Example Configuration"
name = "example"
engine_type = "ActiveMQ"
engine_version = "5.15.0"
Parameters
-
arnoptional computed - string -
authentication_strategyoptional computed - string -
datarequired - string -
descriptionoptional - string -
engine_typerequired - string -
engine_versionrequired - string -
idoptional computed - string -
latest_revisionoptional computed - number -
namerequired - string -
tagsoptional - map from string to string
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.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
EngineVersionrequired - String -
Descriptionoptional - String -
AuthenticationStrategyoptional - String -
EngineTyperequired - String -
Datarequired - String -
Tagsoptional - List of TagsEntry -
Namerequired - String
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.