跳到正文

Kafka ​

The Kafka provider for Pulumi can be used to provision any of the resources available for Kafka. The Kafka provider must be configured with credentials to deploy and update resources in Kafka.

See the full API documentation for complete details of the available Kafka provider APIs.

Setup ​

The Kafka provider supports several options for providing access to Kafka credentials. See the Kafka setup page for details.

Example ​

typescript
import * as kafka from "@pulumi/kafka";

const topic = new kafka.Topic("topic", {
  name: "sample-topic",
  replicationFactor: 1,
  partitions: 4,
});

Libraries ​

The following packages are available in packager managers:

The Kafka provider is open source and available in the pulumi/pulumi-kafka repo.

文档内容翻译自 Pulumi 官方文档。