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

An ibm_resource_key that is removed outside of Terraform is not being recreated #2125

Closed
anweiss opened this issue Dec 17, 2020 · 2 comments
Closed

Comments

@anweiss
Copy link

anweiss commented Dec 17, 2020

Terraform Version

Terraform v0.14.2

  • provider registry.terraform.io/ibm-cloud/ibm v1.14.0

Affected Resource(s)

  • ibm_resource_key

Terraform Configuration Files

resource "ibm_resource_instance" "test_resource" {
  ...
}

resource "ibm_resource_key" "test_resource_key" {
  name                 = "TestResourceKey"
  role                 = "Manager"
  resource_instance_id = ibm_resource_instance.test_resource.id
}

Debug Output

...

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

In .tfstate for the ibm_resource_key resource:

"status": "removed"

Panic Output

N/A

Expected Behavior

The resource should be re-created.

Actual Behavior

The resource is not re-created.

Steps to Reproduce

  1. Remove the service credential from the IBM Console
  2. Run terraform apply

Important Factoids

N/A

References

None that I've come across.

@hkantare
Copy link
Collaborator

Released in latest releases v1.19.0 and above

@kavya498
Copy link
Collaborator

Closing issue

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

No branches or pull requests

3 participants