Skip to content

clickhouse_service resource Value Conversion Error - v3.1.1-alpha1 #293

@LloydArmstrong

Description

@LloydArmstrong

When running terraform plan for the clickhouse_service resource, I receive the following error:

│ Error: Value Conversion Error
│ 
│   with clickhouse_service.datawarehouse,
│   on clickhouse.tf line 34, in resource "clickhouse_service" "datawarehouse":
│   34: resource "clickhouse_service" "datawarehouse" {
│ 
│ An unexpected error was encountered while verifying an attribute value matched its expected type to prevent unexpected behavior or panics. This is
│ always an error in the provider. Please report the following to the provider developer:
│ 
│ Expected framework type from provider logic: types.ObjectType["enabled":basetypes.BoolType, "role_id":basetypes.StringType] / underlying type:
│ tftypes.Object["enabled":tftypes.Bool, "role_id":tftypes.String]
│ Received framework type from provider logic: types.ObjectType[] / underlying type: tftypes.Object[]
│ Path: transparent_data_encryption

Affected Terraform definition below:

resource "clickhouse_service" "datawarehouse" {
  name           = "datawarehouse"
  cloud_provider = "gcp"
  region         = "europe-west4"
  warehouse_id   = "our-unique-id"

  idle_scaling   = true
  ip_access = [
    {
      source = "0.0.0.0/0"
      description = "Anywhere"
    }
  ]
  num_replicas = 3

  min_replica_memory_gb = 8
  max_replica_memory_gb = 32
  idle_timeout_minutes  = 30

  query_api_endpoints = {
    api_key_ids = [
      data.clickhouse_api_key_id.self.id,
    ]
    roles = [
      "admin"
    ]
    allowed_origins = null
  }
  endpoints = {
    mysql = {
      enabled = true
    }
  }

  backup_configuration = {
    backup_period_in_hours           = 24
    backup_retention_period_in_hours = 24
    backup_start_time                = null
  }
}

The same result occurs when using both local and CI/CD deployment and is therefore not local to any specific infrastructure.

Let me know if this is known or an error on my side that I may have overlooked.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions