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

Error message for adminpassword (ibm_database) length requirement is not accurate. #4951

Closed
rajatagarwal-ibm opened this issue Nov 24, 2023 · 1 comment · Fixed by #4931
Closed
Labels
service/Cloud Databases Issues related to Cloud Databases

Comments

@rajatagarwal-ibm
Copy link

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

Terraform CLI and Terraform IBM Provider Version

Affected Resource(s)

  • ibm_database

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

# Create postgresql database
resource "ibm_database" "postgresql_db" {
  depends_on        = [ibm_iam_authorization_policy.kms_policy]
  resource_group_id = var.resource_group_id
  name              = var.name
  service           = "databases-for-postgresql"
  location          = var.region
  plan              = "standard" 
  adminpassword     = "password123"
}

Debug Output

Error: expected length of adminpassword to be in the range (10 - 32), got null
│ 
│   with module.icd_postgres.ibm_database.postgres_database,
│   on ../../main.tf line 59, in resource "ibm_database" "postgres_database":
│   59:   adminpassword             = var.admin_pass

Panic Output

Expected Behavior

The password requirement has been changed to a minimum of 15 characters.

See screenshot from UI

image

Actual Behavior

Steps to Reproduce

Give admin password length less than 15 chars - it will fail.
Verify the same in the UI

  1. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added the service/Cloud Databases Issues related to Cloud Databases label Nov 24, 2023
@alexhemard
Copy link
Collaborator

@rajatagarwal-ibm This should be addressed by #4931

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Cloud Databases Issues related to Cloud Databases
Projects
None yet
2 participants