Creates and manages IonosCloud Kafka Cluster Topic objects.
Manages a Kafka Cluster Topic on IonosCloud.
This resource will create an operational Kafka Cluster Topic. After this section completes, the provisioner can be called.
id
- (Computed)[string] The UUID of the Kafka Cluster Topic.
name
- (Required)[string] Name of the Kafka Cluster.
location
- (Optional)[string] The location of the Kafka Cluster Topic. 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
.
cluster_id
- (Required)[string] ID of the Kafka Cluster that the topic belongs to.
replication_factor
- (Optional)[int] The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster. Minimum value: 1. Default value: 3.
number_of_partitions
- (Optional)[int] The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor. Minimum value: 1. Default value: 3.
retention_time
- (Optional)[int] This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied. Default value: 604800000.
segment_bytes
- (Optional)[int] This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention. Default value: 1073741824.
Kafka Cluster Topic can be imported using the location
, kafka cluster id
and the kafka cluster topic id
: