terraform-ibm-modules / terraform-ibm-icd-postgresql

Implements an instance of the IBM Cloud Databases for PostgreSQL service.
Apache License 2.0
0 stars 2 forks source link

Exclude group block during all restore operations #515

Open shemau opened 2 weeks ago

shemau commented 2 weeks ago

Affected modules

Terraform CLI and Terraform provider versions

Terraform output

      + group {
          + group_id = "member"
          + cpu {
              + allocation_count = 0
            }
          + disk {
              + allocation_mb = 5120
            }
          + members {
              + allocation_count = 2
            }
          + memory {
              + allocation_mb = 4096
            }
        }

Debug output

Expected behavior

The group block should be excluded during restore operations to work around a service side issue with validation

Actual behavior

Following 3.17.10 there are some input values that included backup_crn to request a restore operation that still included the group block. The logic for including the deprecated hosting model has an issue that can cause it to be included with the new hosting model requests.

Steps to reproduce (including links and screen captures)

  1. Run terraform apply

Anything else


By submitting this issue, you agree to follow our Code of Conduct