Skip to content
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

terraform import minio_iam_group.test doesn't work #375

Closed
ihannache opened this issue Oct 26, 2022 · 0 comments · Fixed by #390
Closed

terraform import minio_iam_group.test doesn't work #375

ihannache opened this issue Oct 26, 2022 · 0 comments · Fixed by #390

Comments

@ihannache
Copy link

ihannache commented Oct 26, 2022

Description

Hello, I'm trying to import some existing ressources from out minio to our remote state terraform.
the other ressources works fine and are imported but minio_iam_group won't import.

Steps to Reproduce

create a minio iam group in a local file:

resource "minio_iam_group" "test" {
  name = "test"
}

terraform apply

Empty your local state and try to import the same ressource that was created before :

issamhannache@MacBook-Pro terraform % terraform import minio_iam_group.test test
minio_iam_group.test: Importing from ID "test"...
minio_iam_group.test: Import prepared!
  Prepared minio_iam_group for import
minio_iam_group.test: Refreshing state... [id=test]
╷
│ Error: Cannot import non-existent remote object
│ 
│ While attempting to import an existing object to "minio_iam_group.test", the provider detected that no object exists with the given id. Only pre-existing objects can be imported; check that the
│ id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.

the ressource exists in our minio

**Expected behavior:
the ressrouce to be imported

**Actual behavior: Eprir cannot find the resource with the given id

**Reproduces how often: 100%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant