» aws_mq_configuration

Provides an MQ Configuration Resource.

For more information on Amazon MQ, see Amazon MQ documentation.

» Example Usage

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

  data = <<DATA
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<broker xmlns="http://activemq.apache.org/schema/core">
  <plugins>
    <forcePersistencyModeBrokerPlugin persistenceFlag="true"/>
    <statisticsBrokerPlugin/>
    <timeStampingBrokerPlugin ttlCeiling="86400000" zeroExpirationOverride="86400000"/>
  </plugins>
</broker>
DATA
}

» Argument Reference

The following arguments are supported:

  • data - (Required) The broker configuration in XML format. See official docs for supported parameters and format of the XML.
  • description - (Optional) The description of the configuration.
  • engine_type - (Required) The type of broker engine.
  • engine_version - (Required) The version of the broker engine.
  • name - (Required) The name of the configuration

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The unique ID that Amazon MQ generates for the configuration.
  • arn - The ARN of the configuration.
  • latest_revision - The latest revision of the configuration.

» Import

MQ Configurations can be imported using the configuration ID, e.g.

$ terraform import aws_mq_configuration.example c-0187d1eb-88c8-475a-9b79-16ef5a10c94f