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_database resource: group definition shouldn't result in change when matches current allocation #5285

Open
alexhemard opened this issue Apr 17, 2024 · 0 comments · May be fixed by #5286
Open
Labels
enhancement service/Cloud Databases Issues related to Cloud Databases

Comments

@alexhemard
Copy link
Collaborator

alexhemard commented Apr 17, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

A group definition with an allocation that matches the ICD instance should not result in a change during terraform plan

The following configuration adds a group definition with a memory allocation that matches the current allocation of a databases-for-postgresql instance

resource "ibm_database" "postgresql" {
  name              = "coolguy-pg"
  plan              = "standard"
  location          = "us-south"
  service           = "databases-for-postgresql"
  resource_group_id = data.ibm_resource_group.group.id

  group {
    group_id = "member"
    
    memory {
      allocation_mb = 1024
    } 
  }
}

This results in a change reported during terraform plan

  # ibm_database.postgresql will be updated in-place
  ~ resource "ibm_database" "postgresql" {
        id                      = <crn>
        name                    = "coolguy-pg"
        # (16 unchanged attributes hidden)

      + group {
          + group_id = "member"

          + memory {
              + allocation_mb = 1024
            }
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Applying this change will result in a noop, but the expected behavior is to report no change i.e.

No changes. Your infrastructure matches the configuration.

New or Affected Resource(s)

  • ibm_database

Potential Terraform Configuration

References

@github-actions github-actions bot added the service/Cloud Databases Issues related to Cloud Databases label Apr 17, 2024
@alexhemard alexhemard changed the title ibm_database resource: group definition shouldn't result in change if matches infrastructi ibm_database resource: group definition shouldn't result in change if matches current allocation Apr 17, 2024
@alexhemard alexhemard changed the title ibm_database resource: group definition shouldn't result in change if matches current allocation ibm_database resource: group definition shouldn't result in change when matches current allocation Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement service/Cloud Databases Issues related to Cloud Databases
Projects
None yet
1 participant