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

ibm_container_vpc_worker_pool resource forces a replace if resource_group_id not set #1748

Closed
mschenk42 opened this issue Jul 24, 2020 · 3 comments
Assignees

Comments

@mschenk42
Copy link
Contributor

mschenk42 commented Jul 24, 2020

With the latest release 1.9 the ibm_container_vpc_worker_pool resource will require replacement if the resource group id is not set. The reason for this is the reading and setting of the resource_group_id on the worker pool.

https://github.com/IBM-Cloud/terraform-provider-ibm/blob/master/ibm/resource_ibm_container_vpc_worker_pool.go#L317-L330

Currently the resource_group_id is optional. Not sure what the best approach to fixing this. Maybe the resource_group_id should be required?
https://github.com/IBM-Cloud/terraform-provider-ibm/blob/master/ibm/resource_ibm_container_vpc_worker_pool.go#L89

@hkantare
Copy link
Collaborator

I think the resource_group_id should be both optional and computed...We will update the fix

@hkantare
Copy link
Collaborator

As a temporary workaround you can add the life_cycle block with ignore_changes

lifecycle {
    ignore_changes = [
      resource_group_id,
    ]
  }
}

@hkantare hkantare self-assigned this Aug 10, 2020
@hkantare
Copy link
Collaborator

hkantare commented Dec 7, 2020

Fixed in latest releases

@hkantare hkantare closed this as completed Dec 7, 2020
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

2 participants