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

[Bug]: r/aws_redshiftserverless_namespace: conflict between manage_admin_password and admin_user_password #39265

Open
marcinbelczewski opened this issue Sep 11, 2024 · 1 comment · May be fixed by #39354
Labels
bug Addresses a defect in current functionality. service/redshiftserverless Issues and PRs that pertain to the redshiftserverless service.

Comments

@marcinbelczewski
Copy link

marcinbelczewski commented Sep 11, 2024

Terraform Core Version

1.9.5

AWS Provider Version

5.66.0

Affected Resource(s)

  • aws_redshiftserverless_namespace

Expected Behavior

It is possible to configure manage_admin_password = false and non-empty admin_user_password

Actual Behavior

Setting manage_admin_password = false and non-empty admin_user_password results in:

Error: Conflicting configuration arguments
│
│   with aws_redshiftserverless_namespace.test,
│   on main.tf line 21, in resource "aws_redshiftserverless_namespace" "test":
│   21:   manage_admin_password = false
│
│ "manage_admin_password": conflicts with admin_user_password
╵
╷
│ Error: Conflicting configuration arguments
│
│   with aws_redshiftserverless_namespace.test,
│   on main.tf line 23, in resource "aws_redshiftserverless_namespace" "test":
│   23:   admin_user_password = "Password1234!"
│
│ "admin_user_password": conflicts with manage_admin_password

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_redshiftserverless_namespace" "test" {
  namespace_name = "test"
  manage_admin_password = false
  admin_username = "admin"
  admin_user_password = "Password1234!"
}

Steps to Reproduce

Use config as in the snippet above and try applying

Debug Output

No response

Panic Output

No response

Important Factoids

CreateNamespace and UpdateNamespace APIs as well as AWS CLI, allow for setting manage_admin_password to false and then passing the admin password. The currently implementation in the provider does not allow for the attribute to be in the config alongside the passord, no matter whether it is false.

References

No response

Would you like to implement a fix?

Yes

@marcinbelczewski marcinbelczewski added the bug Addresses a defect in current functionality. label Sep 11, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/redshiftserverless Issues and PRs that pertain to the redshiftserverless service. needs-triage Waiting for first response or review from a maintainer. labels Sep 11, 2024
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/redshiftserverless Issues and PRs that pertain to the redshiftserverless service.
Projects
None yet
2 participants