This action requires the following credentials:

  • user — the username under which the action runs.
  • password — the password for that user.

CreateKafkaTopics — creates new topics in Kafka.

Request example

securityProtocol: SASL_PLAINTEXT
saslMechanism: PLAIN
partitions: 1
replication_factor: 1
configs: {}
topics:
  - example_1
  - example_2

Request specification

NameRequiredDescriptionPossible values
securityProtocolYesProtocol for connecting to Kafka. For more information, see the Kafka documentationPLAINTEXT, SASL_PLAINTEXT, SASL_SSL
saslMechanismNoSASL authentication mechanism. Required when using the SASL_PLAINTEXT or SASL_SSL protocol. For more information, see the Kafka documentationPLAIN, SCRAM-SHA-256, SCRAM-SHA-512
partitionsYesNumber of partitions into which each topic will be divided-
replication_factorYesNumber of copies (replicas) of each topic partition to place on different brokers-
configsYesKey-value configuration for the topics to createValues are listed in the Kafka documentation
topicsYesList of topic names to create-