CmdID

CmdID / aws / aws kafka

aws kafka create-configuration

Creates a new MSK configuration. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a custom Amazon MSK configuration

The following create-configuration example creates a custom MSK configuration with the server properties that are specified in the input file.

aws kafka create-configuration --name "CustomConfiguration" --description "Topic autocreation enabled; Apache ZooKeeper timeout 2000 ms; Log rolling 604800000 ms." --kafka-versions "2.2.1" --server-properties fileb://configuration.txtIdentify
--nameThe name of the configuration.
--descriptionThe description of the configuration.
--kafka-versionsThe versions of Apache Kafka with which you can use this MSK configuration.
--server-propertiesContents of the server.properties file.

Contents of configuration.txt:

auto.create.topics.enable = true
zookeeper.connection.timeout.ms = 2000
log.roll.ms = 604800000

This command produces no output. Output:

{
    "Arn": "arn:aws:kafka:us-west-2:123456789012:configuration/CustomConfiguration/a1b2c3d4-5678-90ab-cdef-11111EXAMPLE-2",
    "CreationTime": "2019-10-09T15:26:05.548Z",
    "LatestRevision":
        {
            "CreationTime": "2019-10-09T15:26:05.548Z",
            "Description": "Topic autocreation enabled; Apache ZooKeeper timeout 2000 ms; Log rolling 604800000 ms.",
            "Revision": 1
        },
    "Name": "CustomConfiguration"
}

For more information, see Amazon MSK Configuration Operations in the Amazon Managed Streaming for Apache Kafka Developer Guide.

Options

4 in the AWS CLI reference
--descriptionThe description of the configuration.
--kafka-versionsThe versions of Apache Kafka with which you can use this MSK configuration.
--nameThe name of the configuration.
--server-propertiesContents of the server.properties file.