Mongey / terraform-provider-confluentcloud

A Terraform provider for managing resource in confluent.cloud
MIT License
109 stars 47 forks source link

Ignore kafka.user.id in connector config #118

Open Brianbrifri opened 3 years ago

Brianbrifri commented 3 years ago

I'm getting this preview when I've changed nothing in my connector config.

Terraform will perform the following actions:
  # confluentcloud_connector.confluentcloud_connector will be updated in-place
  ~ resource "confluentcloud_connector" "confluentcloud_connector" {
      ~ config         = {
          ~ "connection.password"     = "****************" -> "[MASKED]"
          - "kafka.user.id"           = "999999" -> null
          - "schema.registry.url"     = "https://url" -> null
            # (25 unchanged elements hidden)
        }
        id             = "my-connector"
        name           = "my-connector"
        # (2 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.

I saw a recent change to ignore the schema.registry.url. I think the kafka.user.id needs to be ignored as well:

func ignoreConnectorConfigs() []string {
    return []string{
        "config.kafka.endpoint",
        "config.kafka.region",
        "config.kafka.dedicated",
        "config.kafka.user.id",
        "config.cloud.provider",
        "config.cloud.environment",
        "config.valid.kafka.api.key",
        "config.schema.registry.url",
    }
}