| page_title | instaclustr_clickhouse_configuration_v2 Resource - terraform-provider-instaclustr |
|---|---|
| subcategory | |
| description |
ClickHouse configuration overrides
resource "instaclustr_clickhouse_configuration_v2" "example" {
override {
name = "max_threads"
value = "16"
}
override {
name = "log_queries"
value = "1"
}
cluster_id = "b997a00d-5bd4-4774-9bd7-5c0ad6189246"
}
The following terms are used to describe attributes in the schema of this resource:
- read-only - These are attributes that can only be read and not provided as an input to the resource.
- required - These attributes must be provided for the resource to be created.
- optional - These input attributes can be omitted, and doing so may result in a default value being used.
- immutable - These are input attributes that cannot be changed after the resource is created.
- updatable - These input attributes can be updated to a different value if needed, and doing so will trigger an update operation.
- nested block - These attributes use the Terraform block syntax when defined as an input in the Terraform code. Attributes with the type repeatable nested block are the same except that the nested block can be defined multiple times with varying nested attributes. When reading nested block attributes, an index must be provided when accessing the contents of the nested block, example -
my_resource.nested_block_attribute[0].nested_attribute.
cluster_id
Type: string, optional, immutable
ID of the ClickHouse cluster
override
Type: list of objects, optional, updatable
Constraints: minimum items: 1
List of configuration overrides
id
Type: string, read-only
ID of the cluster's configuration. This should be of the form: 'cfg-'.
List of configuration overrides
name
Type: string, required, updatable
Constraints: allowed values: [ max_threads, max_insert_threads, use_skip_indexes, insert_quorum, insert_quorum_timeout, insert_quorum_parallel, distributed_ddl_task_timeout, log_queries, max_execution_time, max_bytes_before_external_group_by, max_bytes_before_external_sort, optimize_on_insert, max_partition_size_to_drop ]
Name of the configuration property.
value
Type: string, optional, updatable
Override value for the configuration property.
This resource can be imported using the terraform import command as follows:
terraform import instaclustr_clickhouse_configuration_v2.[resource-name] "[resource-id]"
[resource-id] is the unique identifier for this resource matching the value of the id attribute defined in the root schema above.