confluentinc / terraform-provider-confluentcloud

Confluent Cloud Terraform Provider is deprecated in favor of Confluent Terraform Provider
https://registry.terraform.io/providers/confluentinc/confluentcloud/latest/docs
52 stars 23 forks source link

BUG: Credentials configuration block isn't being updated #21

Closed venkatamutyala closed 2 years ago

venkatamutyala commented 2 years ago

Steps to recreate: 1) Create cluster specific API keys in Confluent Cloud Console. 2) Create a topic resource using the keys from #1: https://registry.terraform.io/providers/confluentinc/confluentcloud/latest/docs/resources/confluentcloud_kafka_topic 3) Remove API Keys (#1) in Confluent Cloud 4) Create new set of credentials (#1) and update the credentials block (#2) 5) Run a plan/apply and get a 401 error 6) Check the state file and you will see the old credentials that were removed

linouk23 commented 2 years ago

Thanks for creating an issue @venkatamutyala, we'll try to address it in our next 0.3.0 release of TF Provider.

linouk23 commented 2 years ago

@venkatamutyala FYI you can currently fix it by editing TF state manually to use your new Cluster API Key (until we release a new version of TF provider).

linouk23 commented 2 years ago

@venkatamutyala please check out our recent 0.3.0 release that allows you to update credentials block: image