Namespace Pulumi.Aws.Mq
Classes
Broker
Provides an MQ Broker Resource. This resources also manages users for the broker.
For more information on Amazon MQ, see Amazon MQ documentation.
Changes to an MQ Broker can occur when you change a
parameter, such as configuration or user, and are reflected in the next maintenance
window. Because of this, this provider may report a difference in its planning
phase because a modification has not yet taken place. You can use the
apply_immediately flag to instruct the service to apply the change immediately
(see documentation below).
Note: using
apply_immediatelycan result in a brief downtime as the broker reboots.
Note: All arguments including the username and password will be stored in the raw state as plain-text. Read more about sensitive data in state.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Mq.Broker("example", new Aws.Mq.BrokerArgs
{
BrokerName = "example",
Configuration = new Aws.Mq.Inputs.BrokerConfigurationArgs
{
Id = aws_mq_configuration.Test.Id,
Revision = aws_mq_configuration.Test.Latest_revision,
},
EngineType = "ActiveMQ",
EngineVersion = "5.15.0",
HostInstanceType = "mq.t2.micro",
SecurityGroups =
{
aws_security_group.Test.Id,
},
Users =
{
new Aws.Mq.Inputs.BrokerUserArgs
{
Password = "MindTheGap",
Username = "ExampleUser",
},
},
});
}
}
BrokerArgs
BrokerState
Configuration
Provides an MQ Configuration Resource.
For more information on Amazon MQ, see Amazon MQ documentation.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Mq.Configuration("example", new Aws.Mq.ConfigurationArgs
{
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>
",
Description = "Example Configuration",
EngineType = "ActiveMQ",
EngineVersion = "5.15.0",
});
}
}