confluentinc / terraform-provider-confluent

Terraform Provider for Confluent
Apache License 2.0
118 stars 61 forks source link

Allow for importing confluent_api_key using terraform import resources #385

Open tarciosaraiva opened 1 month ago

tarciosaraiva commented 1 month ago

Hi there, terraform has been supporting import blocks since v1.5 and although marked as experimental it is a nice addition to their configuration language as it reduces the amount of cli commands required.

Having a dependency on an environment variable limits the import options. The use case I have in mind is using a data block to read the secret from a secret store and populate the key appropriately in the imported resource.

Any chance this could be looked into?

Original request on this issue 👉🏻 https://github.com/confluentinc/terraform-provider-confluent/issues/375#issuecomment-2111429878