[Bug]: r/aws_redshiftserverless_namespace: in managed password mode, unable to change admin username #39266
Labels
bug
Addresses a defect in current functionality.
service/redshiftserverless
Issues and PRs that pertain to the redshiftserverless service.
Terraform Core Version
1.9.5
AWS Provider Version
5.66.0
Affected Resource(s)
Expected Behavior
Admin username is changed
Actual Behavior
Confusing error:
suggesting password is not managed and validated
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
The resource update implementation in the provider checks changes in all the attributes one by one and passes only the changed one in the API call.
manage_admin_password
is set to true and unchanged, it won't get passed in API call.admin_username
changes and is passed in the API call. Whenevermanage_admin_password
is omitted in UpdateNamespace API call, the default isfalse
, meaning the API will understand the request as an update in unmanaged admin user password. It will then try to validate the password which is omitted in the API call (this makes sense as we intend to have managed password)References
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: