Confluent Cloud Provider for Pulumi
Use Pulumi with Confluent Cloud to provision and manage Kafka clusters and other resources using standard programming languages instead of domain-specific configuration files. Pulumi is an open source infrastructure-as-code tool that uses popular programming languages to provision and manage cloud resources. The Confluent Cloud provider for Pulumi is built on the official Confluent Terraform Provider for Confluent Cloud and supports TypeScript, JavaScript, Python, Go, .NET, Java, and YAML.
Using the Confluent Cloud provider for Pulumi
The Confluent Cloud provider for Pulumi lets you provision environments and Kafka clusters using C#, TypeScript, Python, Go, Java, or YAML. The following example provisions a Confluent Cloud environment and a Kafka cluster using C#:
public void CreateEnvironment(
string envName,
string clusterName)
{
EnvironmentArgs args = new()
{
DisplayName = envName
};
Pulumi.ConfluentCloud.Environment env = new(envName, args);
KafkaClusterEnvironmentArgs clusterEnvArgs = new()
{
Id = env.Id
};
KafkaClusterArgs clusterArgs = new()
{
Availability = "SINGLE_ZONE",
Basics = new KafkaClusterBasicArgs(),
Cloud = "AWS",
DisplayName = clusterName,
Environment = clusterEnvArgs,
Region = "us-west-2",
};
KafkaCluster cluster = new(clusterName, clusterArgs);
}
Resources you can manage
You can manage the following Confluent Cloud resources using the Pulumi provider:
Get started with Pulumi
To start using Pulumi with Confluent Cloud:
