Skip to content

(DUX) Bug: Fixed the Terraform create DB with non-existing region#6697

Open
pushpalathaeg wants to merge 1 commit intoIBM-Cloud:masterfrom
pushpalathaeg:2087/non-existing-region-in-terraform
Open

(DUX) Bug: Fixed the Terraform create DB with non-existing region#6697
pushpalathaeg wants to merge 1 commit intoIBM-Cloud:masterfrom
pushpalathaeg:2087/non-existing-region-in-terraform

Conversation

@pushpalathaeg
Copy link
Contributor

@pushpalathaeg pushpalathaeg commented Mar 11, 2026

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment 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 pull request followers and do not help prioritize the request

Relates OR Closes #0000

Issue: https://github.ibm.com/compose/App/issues/2087

Before the Fix
Screenshot 2026-03-11 at 3 19 49 PM

Proposed changes:
Terraform plan will check the valid regions and give the validation errors instead of panic errors before TF apply

After the Fix
Screenshot 2026-03-11 at 3 27 50 PM

Output from acceptance testing:

$ make testacc TEST=./ibm/service/database TESTARGS='-run=TestAccIBMDatabaseInstancePostgresBasic'
=== RUN   TestAccIBMDatabaseInstancePostgresBasic
=== PAUSE TestAccIBMDatabaseInstancePostgresBasic
=== CONT  TestAccIBMDatabaseInstancePostgresBasic
--- PASS: TestAccIBMDatabaseInstancePostgresBasic (1157.09s)
PASS
ok      github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/database        1158.496s


...

@hkantare
Copy link
Collaborator

This fix can't be taken since provider is common for all IBM cloud services, we can't restrict the region check at provider level

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 this pull request may close these issues.

2 participants