-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing existing confluentcloud_api_key looks like broken #100
Comments
I just ran into this today, and wanted to note that I was seeing the issue as well. You can find the ID that the provider "wants" to use in the confluent web UI when viewing the API key, and it looks like a 6 digit number. Supplying that number on the cli when importing seems to work, but then when running a "terraform plan" after that, the provider thinks it needs to change the id, and recreate the key (which fails if you try to proceed with the plan).
|
In that example @sjahl, it looks like the In the meantime, you could manually change your state to populate cluster_id and environment_id, which should stop it from attempting to recreate the key terraform-provider-confluentcloud/ccloud/resource_api_key.go Lines 20 to 22 in 0328b5c
|
I have difficulty in importing existing confluentcloud_api_key resources.
ccloud api-key list
does not give an ID field that can be used and when I use thekey
attribute, I get only an empty resource in terraform state. Later I realized even an arbitrary identifier "successfully" imports an empty resource.Example:
terraform import confluentcloud_api_key.api "arbitrary"
gives
And when I check this in terraform state:
Can you confirm
terraform import confluentcloud_api_key
is not supported yet? Is it on the roadmap by any chance?In relation to this, ACL imports are also not supported I suppose. Can you confirm?
The text was updated successfully, but these errors were encountered: