-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Issue-20146 Add username parameter to RDS proxy auth #24264
Issue-20146 Add username parameter to RDS proxy auth #24264
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @enicholson125 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTS=TestAccRDSProxy_ PKG=rds ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 2 -run='TestAccRDSProxy_' -timeout 180m
=== RUN TestAccRDSProxy_basic
=== PAUSE TestAccRDSProxy_basic
=== RUN TestAccRDSProxy_name
=== PAUSE TestAccRDSProxy_name
=== RUN TestAccRDSProxy_debugLogging
=== PAUSE TestAccRDSProxy_debugLogging
=== RUN TestAccRDSProxy_idleClientTimeout
=== PAUSE TestAccRDSProxy_idleClientTimeout
=== RUN TestAccRDSProxy_requireTLS
=== PAUSE TestAccRDSProxy_requireTLS
=== RUN TestAccRDSProxy_roleARN
=== PAUSE TestAccRDSProxy_roleARN
=== RUN TestAccRDSProxy_vpcSecurityGroupIDs
=== PAUSE TestAccRDSProxy_vpcSecurityGroupIDs
=== RUN TestAccRDSProxy_authDescription
=== PAUSE TestAccRDSProxy_authDescription
=== RUN TestAccRDSProxy_authIAMAuth
=== PAUSE TestAccRDSProxy_authIAMAuth
=== RUN TestAccRDSProxy_authSecretARN
=== PAUSE TestAccRDSProxy_authSecretARN
=== RUN TestAccRDSProxy_authUsername
=== PAUSE TestAccRDSProxy_authUsername
=== RUN TestAccRDSProxy_tags
=== PAUSE TestAccRDSProxy_tags
=== RUN TestAccRDSProxy_disappears
=== PAUSE TestAccRDSProxy_disappears
=== CONT TestAccRDSProxy_basic
=== CONT TestAccRDSProxy_authDescription
--- PASS: TestAccRDSProxy_basic (681.58s)
=== CONT TestAccRDSProxy_authUsername
--- PASS: TestAccRDSProxy_authDescription (681.71s)
=== CONT TestAccRDSProxy_disappears
--- PASS: TestAccRDSProxy_disappears (518.96s)
=== CONT TestAccRDSProxy_tags
--- PASS: TestAccRDSProxy_authUsername (524.51s)
=== CONT TestAccRDSProxy_requireTLS
--- PASS: TestAccRDSProxy_requireTLS (581.99s)
=== CONT TestAccRDSProxy_vpcSecurityGroupIDs
--- PASS: TestAccRDSProxy_tags (613.46s)
=== CONT TestAccRDSProxy_roleARN
--- PASS: TestAccRDSProxy_roleARN (634.13s)
=== CONT TestAccRDSProxy_debugLogging
--- PASS: TestAccRDSProxy_vpcSecurityGroupIDs (736.20s)
=== CONT TestAccRDSProxy_idleClientTimeout
--- PASS: TestAccRDSProxy_debugLogging (894.40s)
=== CONT TestAccRDSProxy_name
--- PASS: TestAccRDSProxy_idleClientTimeout (818.55s)
=== CONT TestAccRDSProxy_authSecretARN
--- PASS: TestAccRDSProxy_authSecretARN (824.41s)
=== CONT TestAccRDSProxy_authIAMAuth
--- PASS: TestAccRDSProxy_name (824.82s)
--- PASS: TestAccRDSProxy_authIAMAuth (960.37s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 5131.093s
@enicholson125 Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.11.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
This PR adds the username parameter into the auth config for the RDS proxy, to match the API provided by AWS for the proxy. I have not included an acceptance test for setting the username field, as the behaviour of the API with this parameter does not support it: the API returns an error for requests setting both
username
andauth_scheme
. Settingusername
withoutauth_scheme
is successful but leads to a diff in the subsequent plan, asauth_scheme
is added automatically to the resource.It seemed sensible to make the terraform provider fully support the parameters available in the API, even though the username parameter doesn't do much.
Closes #20146
Output from acceptance testing:
I did these in a few batches to avoid VPC quota issues.