-
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
Data source aws_secretsmanager_secret_versions #35411
Data source aws_secretsmanager_secret_versions #35411
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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 @wcmjunior 👋
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 CONTRIBUTOR 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! 😃
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
dd476a3
to
1db44ea
Compare
84209d6
to
ee25781
Compare
Hey @justinretzolk . Do you know when you (or someone else) will be available to review this PR? This is just a gentle ping. TYVM. :) |
Hey @wcmjunior 👋 Thanks for checking in here! I can't speak to when this will be prioritized just yet. We base our prioritization on the count of 👍 reactions and a few other considerations (more information: prioritization guide). |
Thanks for working on this! I would love for it to be added to the AWS provider 🤯 |
Can we please review and merge this? We need a way to list version IDs even if a secret has no versions (empty list would be returned). Right now there is not way of doing that :( |
I just tested and it does not fail for a non-existing version, so the data source is good to go. 🙏 I added a test case for it, but I'm afraid that pushing the |
Hey @justinretzolk. It would help a lot if this PR could be merged as it is already reviewed. Gentle ping again. :-) |
yes, please let's get this merged ASAP. 🙏 |
Just realized the review is not from a contributor (although I appreciate it), so decide to add a new test case as this may take a long time to be merged anyways. |
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! 🚀 Thank you so much for your contribution!
> make testacc TESTS=TestAccSecretsManagerSecretVersionsDataSource_ PKG=secretsmanager
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/secretsmanager/... -v -count 1 -parallel 20 -run='TestAccSecretsManagerSecretVersionsDataSource_' -timeout 360m
=== RUN TestAccSecretsManagerSecretVersionsDataSource_basic
=== PAUSE TestAccSecretsManagerSecretVersionsDataSource_basic
=== RUN TestAccSecretsManagerSecretVersionsDataSource_emptyVer
=== PAUSE TestAccSecretsManagerSecretVersionsDataSource_emptyVer
=== CONT TestAccSecretsManagerSecretVersionsDataSource_basic
=== CONT TestAccSecretsManagerSecretVersionsDataSource_emptyVer
--- PASS: TestAccSecretsManagerSecretVersionsDataSource_emptyVer (11.86s)
--- PASS: TestAccSecretsManagerSecretVersionsDataSource_basic (12.62s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/secretsmanager 18.436s
@nam054 thanks for reviewing and merging the feature. I really need it. A bit disappointing to see the contribution is not computed to the original PR author, but the feature availability is more important for me now. :-) |
This functionality has been released in v5.62.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! |
this worked very well, thanks @wcmjunior . Only one minor note: the docs need to be updated. According to the docs, we should call |
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. |
Description
Add a new data source
aws_secretsmanager_secret_versions
to retrieve the secret versions from a secret.Relations
Closes #29469
Output from Acceptance Testing