Skip to content
GitHubXDiscordRSS

Configuration

Learn how to create, update, and manage AWS AmazonMQ Configurations using Alchemy Cloud Control.

The Configuration resource lets you manage AWS AmazonMQ Configurations for creating and managing message brokers in the cloud.

Create a basic AmazonMQ configuration with required properties and one optional property.

import AWS from "alchemy/aws/control";
const amazonMqConfig = await AWS.AmazonMQ.Configuration("basic-config", {
name: "MyBasicConfig",
engineType: "ActiveMQ",
engineVersion: "5.15.14",
description: "A basic configuration for ActiveMQ"
});

Configure an AmazonMQ resource with advanced settings such as a custom authentication strategy.

const advancedMqConfig = await AWS.AmazonMQ.Configuration("advanced-config", {
name: "MyAdvancedConfig",
engineType: "RabbitMQ",
engineVersion: "3.8.9",
description: "An advanced configuration for RabbitMQ with authentication strategy",
authenticationStrategy: "SIMPLE",
tags: [
{ key: "Environment", value: "Production" },
{ key: "Team", value: "DevOps" }
]
});

Demonstrate creating a configuration with specific data settings.

const customDataConfig = await AWS.AmazonMQ.Configuration("custom-data-config", {
name: "MyCustomDataConfig",
engineType: "ActiveMQ",
engineVersion: "5.15.14",
data: JSON.stringify({
"broker": {
"type": "persistent",
"maxConnections": 500
}
}),
description: "Configuration with custom data settings"
});

Create a configuration that includes tagging for resource management.

const taggedConfig = await AWS.AmazonMQ.Configuration("tagged-config", {
name: "MyTaggedConfig",
engineType: "RabbitMQ",
engineVersion: "3.8.9",
description: "Configuration tagged for easy identification",
tags: [
{ key: "Project", value: "MessagingService" },
{ key: "Owner", value: "TeamAlpha" }
]
});