Skip to content

Importing existing confluentcloud_api_key looks like broken #100

@sertaco

Description

@sertaco

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 the key 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

confluentcloud_api_key.api: Import prepared!
  Prepared confluentcloud_api_key for import
confluentcloud_api_key.api: Refreshing state... [id=random]

Import successful!

The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.

And when I check this in terraform state:

# confluentcloud_api_key.api:
resource "confluentcloud_api_key" "api" {
    id = "arbitrary"
}

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions