1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. KafkaCluster
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.KafkaCluster

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

    Manages a Kafka Cluster on IonosCloud.

    Example Usage

    This resource will create an operational Kafka Cluster. After this section completes, the provisioner can be called.

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    // Basic example
    const exampleDatacenter = new ionoscloud.Datacenter("exampleDatacenter", {location: "de/fra"});
    const exampleLan = new ionoscloud.Lan("exampleLan", {
        datacenterId: exampleDatacenter.datacenterId,
        "public": false,
    });
    const exampleKafkaCluster = new ionoscloud.KafkaCluster("exampleKafkaCluster", {
        location: "de/fra",
        version: "3.7.0",
        size: "S",
        connections: {
            datacenterId: exampleDatacenter.datacenterId,
            lanId: exampleLan.lanId,
            brokerAddresses: [
                "192.168.1.101/24",
                "192.168.1.102/24",
                "192.168.1.103/24",
            ],
        },
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    # Basic example
    example_datacenter = ionoscloud.Datacenter("exampleDatacenter", location="de/fra")
    example_lan = ionoscloud.Lan("exampleLan",
        datacenter_id=example_datacenter.datacenter_id,
        public=False)
    example_kafka_cluster = ionoscloud.KafkaCluster("exampleKafkaCluster",
        location="de/fra",
        version="3.7.0",
        size="S",
        connections={
            "datacenter_id": example_datacenter.datacenter_id,
            "lan_id": example_lan.lan_id,
            "broker_addresses": [
                "192.168.1.101/24",
                "192.168.1.102/24",
                "192.168.1.103/24",
            ],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Basic example
    		exampleDatacenter, err := ionoscloud.NewDatacenter(ctx, "exampleDatacenter", &ionoscloud.DatacenterArgs{
    			Location: pulumi.String("de/fra"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleLan, err := ionoscloud.NewLan(ctx, "exampleLan", &ionoscloud.LanArgs{
    			DatacenterId: exampleDatacenter.DatacenterId,
    			Public:       pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ionoscloud.NewKafkaCluster(ctx, "exampleKafkaCluster", &ionoscloud.KafkaClusterArgs{
    			Location: pulumi.String("de/fra"),
    			Version:  pulumi.String("3.7.0"),
    			Size:     pulumi.String("S"),
    			Connections: &ionoscloud.KafkaClusterConnectionsArgs{
    				DatacenterId: exampleDatacenter.DatacenterId,
    				LanId:        exampleLan.LanId,
    				BrokerAddresses: pulumi.StringArray{
    					pulumi.String("192.168.1.101/24"),
    					pulumi.String("192.168.1.102/24"),
    					pulumi.String("192.168.1.103/24"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        // Basic example
        var exampleDatacenter = new Ionoscloud.Datacenter("exampleDatacenter", new()
        {
            Location = "de/fra",
        });
    
        var exampleLan = new Ionoscloud.Lan("exampleLan", new()
        {
            DatacenterId = exampleDatacenter.DatacenterId,
            Public = false,
        });
    
        var exampleKafkaCluster = new Ionoscloud.KafkaCluster("exampleKafkaCluster", new()
        {
            Location = "de/fra",
            Version = "3.7.0",
            Size = "S",
            Connections = new Ionoscloud.Inputs.KafkaClusterConnectionsArgs
            {
                DatacenterId = exampleDatacenter.DatacenterId,
                LanId = exampleLan.LanId,
                BrokerAddresses = new[]
                {
                    "192.168.1.101/24",
                    "192.168.1.102/24",
                    "192.168.1.103/24",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.Datacenter;
    import com.pulumi.ionoscloud.DatacenterArgs;
    import com.pulumi.ionoscloud.Lan;
    import com.pulumi.ionoscloud.LanArgs;
    import com.pulumi.ionoscloud.KafkaCluster;
    import com.pulumi.ionoscloud.KafkaClusterArgs;
    import com.pulumi.ionoscloud.inputs.KafkaClusterConnectionsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // Basic example
            var exampleDatacenter = new Datacenter("exampleDatacenter", DatacenterArgs.builder()
                .location("de/fra")
                .build());
    
            var exampleLan = new Lan("exampleLan", LanArgs.builder()
                .datacenterId(exampleDatacenter.datacenterId())
                .public_(false)
                .build());
    
            var exampleKafkaCluster = new KafkaCluster("exampleKafkaCluster", KafkaClusterArgs.builder()
                .location("de/fra")
                .version("3.7.0")
                .size("S")
                .connections(KafkaClusterConnectionsArgs.builder()
                    .datacenterId(exampleDatacenter.datacenterId())
                    .lanId(exampleLan.lanId())
                    .brokerAddresses(                
                        "192.168.1.101/24",
                        "192.168.1.102/24",
                        "192.168.1.103/24")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Basic example
      exampleDatacenter:
        type: ionoscloud:Datacenter
        properties:
          location: de/fra
      exampleLan:
        type: ionoscloud:Lan
        properties:
          datacenterId: ${exampleDatacenter.datacenterId}
          public: false
      exampleKafkaCluster:
        type: ionoscloud:KafkaCluster
        properties:
          location: de/fra
          version: 3.7.0
          size: S
          connections:
            datacenterId: ${exampleDatacenter.datacenterId}
            lanId: ${exampleLan.lanId}
            brokerAddresses:
              - 192.168.1.101/24
              - 192.168.1.102/24
              - 192.168.1.103/24
    

    Create KafkaCluster Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new KafkaCluster(name: string, args: KafkaClusterArgs, opts?: CustomResourceOptions);
    @overload
    def KafkaCluster(resource_name: str,
                     args: KafkaClusterArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def KafkaCluster(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     connections: Optional[KafkaClusterConnectionsArgs] = None,
                     size: Optional[str] = None,
                     version: Optional[str] = None,
                     location: Optional[str] = None,
                     name: Optional[str] = None,
                     timeouts: Optional[KafkaClusterTimeoutsArgs] = None)
    func NewKafkaCluster(ctx *Context, name string, args KafkaClusterArgs, opts ...ResourceOption) (*KafkaCluster, error)
    public KafkaCluster(string name, KafkaClusterArgs args, CustomResourceOptions? opts = null)
    public KafkaCluster(String name, KafkaClusterArgs args)
    public KafkaCluster(String name, KafkaClusterArgs args, CustomResourceOptions options)
    
    type: ionoscloud:KafkaCluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args KafkaClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args KafkaClusterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args KafkaClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KafkaClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KafkaClusterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var kafkaClusterResource = new Ionoscloud.KafkaCluster("kafkaClusterResource", new()
    {
        Connections = new Ionoscloud.Inputs.KafkaClusterConnectionsArgs
        {
            BrokerAddresses = new[]
            {
                "string",
            },
            DatacenterId = "string",
            LanId = "string",
        },
        Size = "string",
        Version = "string",
        Location = "string",
        Name = "string",
        Timeouts = new Ionoscloud.Inputs.KafkaClusterTimeoutsArgs
        {
            Create = "string",
            Default = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ionoscloud.NewKafkaCluster(ctx, "kafkaClusterResource", &ionoscloud.KafkaClusterArgs{
    	Connections: &ionoscloud.KafkaClusterConnectionsArgs{
    		BrokerAddresses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		DatacenterId: pulumi.String("string"),
    		LanId:        pulumi.String("string"),
    	},
    	Size:     pulumi.String("string"),
    	Version:  pulumi.String("string"),
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Timeouts: &ionoscloud.KafkaClusterTimeoutsArgs{
    		Create:  pulumi.String("string"),
    		Default: pulumi.String("string"),
    		Delete:  pulumi.String("string"),
    		Update:  pulumi.String("string"),
    	},
    })
    
    var kafkaClusterResource = new KafkaCluster("kafkaClusterResource", KafkaClusterArgs.builder()
        .connections(KafkaClusterConnectionsArgs.builder()
            .brokerAddresses("string")
            .datacenterId("string")
            .lanId("string")
            .build())
        .size("string")
        .version("string")
        .location("string")
        .name("string")
        .timeouts(KafkaClusterTimeoutsArgs.builder()
            .create("string")
            .default_("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    kafka_cluster_resource = ionoscloud.KafkaCluster("kafkaClusterResource",
        connections={
            "broker_addresses": ["string"],
            "datacenter_id": "string",
            "lan_id": "string",
        },
        size="string",
        version="string",
        location="string",
        name="string",
        timeouts={
            "create": "string",
            "default": "string",
            "delete": "string",
            "update": "string",
        })
    
    const kafkaClusterResource = new ionoscloud.KafkaCluster("kafkaClusterResource", {
        connections: {
            brokerAddresses: ["string"],
            datacenterId: "string",
            lanId: "string",
        },
        size: "string",
        version: "string",
        location: "string",
        name: "string",
        timeouts: {
            create: "string",
            "default": "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ionoscloud:KafkaCluster
    properties:
        connections:
            brokerAddresses:
                - string
            datacenterId: string
            lanId: string
        location: string
        name: string
        size: string
        timeouts:
            create: string
            default: string
            delete: string
            update: string
        version: string
    

    KafkaCluster Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The KafkaCluster resource accepts the following input properties:

    Connections KafkaClusterConnections
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    Size string
    [string] Size of the Kafka Cluster. Possible values: XS, S
    Version string
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    Location string
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    Name string
    [string] Name of the Kafka Cluster.
    Timeouts KafkaClusterTimeouts
    Connections KafkaClusterConnectionsArgs
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    Size string
    [string] Size of the Kafka Cluster. Possible values: XS, S
    Version string
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    Location string
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    Name string
    [string] Name of the Kafka Cluster.
    Timeouts KafkaClusterTimeoutsArgs
    connections KafkaClusterConnections
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    size String
    [string] Size of the Kafka Cluster. Possible values: XS, S
    version String
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    location String
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    name String
    [string] Name of the Kafka Cluster.
    timeouts KafkaClusterTimeouts
    connections KafkaClusterConnections
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    size string
    [string] Size of the Kafka Cluster. Possible values: XS, S
    version string
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    location string
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    name string
    [string] Name of the Kafka Cluster.
    timeouts KafkaClusterTimeouts
    connections KafkaClusterConnectionsArgs
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    size str
    [string] Size of the Kafka Cluster. Possible values: XS, S
    version str
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    location str
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    name str
    [string] Name of the Kafka Cluster.
    timeouts KafkaClusterTimeoutsArgs
    connections Property Map
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    size String
    [string] Size of the Kafka Cluster. Possible values: XS, S
    version String
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    location String
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    name String
    [string] Name of the Kafka Cluster.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the KafkaCluster resource produces the following output properties:

    BrokerAddresses List<string>

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    Id string
    The provider-assigned unique ID for this managed resource.
    BrokerAddresses []string

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    Id string
    The provider-assigned unique ID for this managed resource.
    brokerAddresses List<String>

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    id String
    The provider-assigned unique ID for this managed resource.
    brokerAddresses string[]

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    id string
    The provider-assigned unique ID for this managed resource.
    broker_addresses Sequence[str]

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    id str
    The provider-assigned unique ID for this managed resource.
    brokerAddresses List<String>

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing KafkaCluster Resource

    Get an existing KafkaCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: KafkaClusterState, opts?: CustomResourceOptions): KafkaCluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            broker_addresses: Optional[Sequence[str]] = None,
            connections: Optional[KafkaClusterConnectionsArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            size: Optional[str] = None,
            timeouts: Optional[KafkaClusterTimeoutsArgs] = None,
            version: Optional[str] = None) -> KafkaCluster
    func GetKafkaCluster(ctx *Context, name string, id IDInput, state *KafkaClusterState, opts ...ResourceOption) (*KafkaCluster, error)
    public static KafkaCluster Get(string name, Input<string> id, KafkaClusterState? state, CustomResourceOptions? opts = null)
    public static KafkaCluster get(String name, Output<String> id, KafkaClusterState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:KafkaCluster    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BrokerAddresses List<string>

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    Connections KafkaClusterConnections
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    Location string
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    Name string
    [string] Name of the Kafka Cluster.
    Size string
    [string] Size of the Kafka Cluster. Possible values: XS, S
    Timeouts KafkaClusterTimeouts
    Version string
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    BrokerAddresses []string

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    Connections KafkaClusterConnectionsArgs
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    Location string
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    Name string
    [string] Name of the Kafka Cluster.
    Size string
    [string] Size of the Kafka Cluster. Possible values: XS, S
    Timeouts KafkaClusterTimeoutsArgs
    Version string
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    brokerAddresses List<String>

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    connections KafkaClusterConnections
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    location String
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    name String
    [string] Name of the Kafka Cluster.
    size String
    [string] Size of the Kafka Cluster. Possible values: XS, S
    timeouts KafkaClusterTimeouts
    version String
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    brokerAddresses string[]

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    connections KafkaClusterConnections
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    location string
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    name string
    [string] Name of the Kafka Cluster.
    size string
    [string] Size of the Kafka Cluster. Possible values: XS, S
    timeouts KafkaClusterTimeouts
    version string
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    broker_addresses Sequence[str]

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    connections KafkaClusterConnectionsArgs
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    location str
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    name str
    [string] Name of the Kafka Cluster.
    size str
    [string] Size of the Kafka Cluster. Possible values: XS, S
    timeouts KafkaClusterTimeoutsArgs
    version str
    [string] Version of the Kafka Cluster. Possible values: 3.7.0
    brokerAddresses List<String>

    [list] IP address and port of cluster brokers.

    ⚠ NOTE: IONOS_API_URL_KAFKA can be used to set a custom API URL for the kafka resource. location field needs to be empty, otherwise it will override the custom API URL. Setting endpoint or IONOS_API_URL does not have any effect.

    connections Property Map
    Connection information of the Kafka Cluster. Minimum items: 1, maximum items: 1.
    location String
    [string] The location of the Kafka Cluster. Possible values: de/fra, de/txl. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
    name String
    [string] Name of the Kafka Cluster.
    size String
    [string] Size of the Kafka Cluster. Possible values: XS, S
    timeouts Property Map
    version String
    [string] Version of the Kafka Cluster. Possible values: 3.7.0

    Supporting Types

    KafkaClusterConnections, KafkaClusterConnectionsArgs

    BrokerAddresses List<string>
    [list] IP addresses and subnet of cluster brokers. Note the following unavailable IP range: 10.224.0.0/11
    DatacenterId string
    [string] The datacenter to connect your instance to.
    LanId string
    [string] The numeric LAN ID to connect your instance to.
    BrokerAddresses []string
    [list] IP addresses and subnet of cluster brokers. Note the following unavailable IP range: 10.224.0.0/11
    DatacenterId string
    [string] The datacenter to connect your instance to.
    LanId string
    [string] The numeric LAN ID to connect your instance to.
    brokerAddresses List<String>
    [list] IP addresses and subnet of cluster brokers. Note the following unavailable IP range: 10.224.0.0/11
    datacenterId String
    [string] The datacenter to connect your instance to.
    lanId String
    [string] The numeric LAN ID to connect your instance to.
    brokerAddresses string[]
    [list] IP addresses and subnet of cluster brokers. Note the following unavailable IP range: 10.224.0.0/11
    datacenterId string
    [string] The datacenter to connect your instance to.
    lanId string
    [string] The numeric LAN ID to connect your instance to.
    broker_addresses Sequence[str]
    [list] IP addresses and subnet of cluster brokers. Note the following unavailable IP range: 10.224.0.0/11
    datacenter_id str
    [string] The datacenter to connect your instance to.
    lan_id str
    [string] The numeric LAN ID to connect your instance to.
    brokerAddresses List<String>
    [list] IP addresses and subnet of cluster brokers. Note the following unavailable IP range: 10.224.0.0/11
    datacenterId String
    [string] The datacenter to connect your instance to.
    lanId String
    [string] The numeric LAN ID to connect your instance to.

    KafkaClusterTimeouts, KafkaClusterTimeoutsArgs

    Create string
    Default string
    Delete string
    Update string
    Create string
    Default string
    Delete string
    Update string
    create String
    default_ String
    delete String
    update String
    create string
    default string
    delete string
    update string
    create String
    default String
    delete String
    update String

    Import

    Kafka Cluster can be imported using the location and kafka cluster id:

    $ pulumi import ionoscloud:index/kafkaCluster:KafkaCluster mycluster location:kafka cluster uuid
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ionoscloud ionos-cloud/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud