-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
enhancement(rds): Support default_only, include_all, and filter for aws_rds_engine_version #26923
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 @md5 👋
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! 😃
Added some tests for the new additions. Here is the output of % make testacc AWS_PROFILE=default TESTS=TestAccRDSEngineVersionDataSource PKG=rds
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 20 -run='TestAccRDSEngineVersionDataSource' -timeout 180m
=== RUN TestAccRDSEngineVersionDataSource_basic
=== PAUSE TestAccRDSEngineVersionDataSource_basic
=== RUN TestAccRDSEngineVersionDataSource_upgradeTargets
=== PAUSE TestAccRDSEngineVersionDataSource_upgradeTargets
=== RUN TestAccRDSEngineVersionDataSource_preferred
=== PAUSE TestAccRDSEngineVersionDataSource_preferred
=== RUN TestAccRDSEngineVersionDataSource_defaultOnlyImplicit
=== PAUSE TestAccRDSEngineVersionDataSource_defaultOnlyImplicit
=== RUN TestAccRDSEngineVersionDataSource_defaultOnlyExplicit
=== PAUSE TestAccRDSEngineVersionDataSource_defaultOnlyExplicit
=== RUN TestAccRDSEngineVersionDataSource_includeAll
=== PAUSE TestAccRDSEngineVersionDataSource_includeAll
=== RUN TestAccRDSEngineVersionDataSource_filter
=== PAUSE TestAccRDSEngineVersionDataSource_filter
=== CONT TestAccRDSEngineVersionDataSource_basic
=== CONT TestAccRDSEngineVersionDataSource_defaultOnlyExplicit
=== CONT TestAccRDSEngineVersionDataSource_preferred
=== CONT TestAccRDSEngineVersionDataSource_defaultOnlyImplicit
=== CONT TestAccRDSEngineVersionDataSource_filter
=== CONT TestAccRDSEngineVersionDataSource_includeAll
=== CONT TestAccRDSEngineVersionDataSource_upgradeTargets
--- PASS: TestAccRDSEngineVersionDataSource_upgradeTargets (11.06s)
--- PASS: TestAccRDSEngineVersionDataSource_includeAll (11.07s)
--- PASS: TestAccRDSEngineVersionDataSource_filter (11.27s)
--- PASS: TestAccRDSEngineVersionDataSource_defaultOnlyExplicit (11.27s)
--- PASS: TestAccRDSEngineVersionDataSource_defaultOnlyImplicit (11.27s)
--- PASS: TestAccRDSEngineVersionDataSource_basic (11.35s)
--- PASS: TestAccRDSEngineVersionDataSource_preferred (11.59s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 14.068s |
2a952a6
to
25d7798
Compare
@justinretzolk do you have a sense for when the next round of PR triage will happen? I'd like to be able to plan for when this change might land in a release of the provider, particularly if I end up needing to address any feedback. |
25d7798
to
c45bc58
Compare
@breathingdust I know I put |
Looks like this also closes #26867 |
c45bc58
to
e3f2ae1
Compare
I just rebased this and reran the acceptance tests: % TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 20 -run='TestAccRDSEngineVersionDataSource' -timeout 180m
=== RUN TestAccRDSEngineVersionDataSource_basic
=== PAUSE TestAccRDSEngineVersionDataSource_basic
=== RUN TestAccRDSEngineVersionDataSource_upgradeTargets
=== PAUSE TestAccRDSEngineVersionDataSource_upgradeTargets
=== RUN TestAccRDSEngineVersionDataSource_preferred
=== PAUSE TestAccRDSEngineVersionDataSource_preferred
=== RUN TestAccRDSEngineVersionDataSource_defaultOnlyImplicit
=== PAUSE TestAccRDSEngineVersionDataSource_defaultOnlyImplicit
=== RUN TestAccRDSEngineVersionDataSource_defaultOnlyExplicit
=== PAUSE TestAccRDSEngineVersionDataSource_defaultOnlyExplicit
=== RUN TestAccRDSEngineVersionDataSource_includeAll
=== PAUSE TestAccRDSEngineVersionDataSource_includeAll
=== RUN TestAccRDSEngineVersionDataSource_filter
=== PAUSE TestAccRDSEngineVersionDataSource_filter
=== CONT TestAccRDSEngineVersionDataSource_basic
=== CONT TestAccRDSEngineVersionDataSource_filter
=== CONT TestAccRDSEngineVersionDataSource_defaultOnlyExplicit
=== CONT TestAccRDSEngineVersionDataSource_includeAll
=== CONT TestAccRDSEngineVersionDataSource_preferred
=== CONT TestAccRDSEngineVersionDataSource_defaultOnlyImplicit
=== CONT TestAccRDSEngineVersionDataSource_upgradeTargets
--- PASS: TestAccRDSEngineVersionDataSource_filter (11.73s)
--- PASS: TestAccRDSEngineVersionDataSource_includeAll (12.00s)
--- PASS: TestAccRDSEngineVersionDataSource_defaultOnlyExplicit (12.34s)
--- PASS: TestAccRDSEngineVersionDataSource_basic (12.34s)
--- PASS: TestAccRDSEngineVersionDataSource_defaultOnlyImplicit (12.34s)
--- PASS: TestAccRDSEngineVersionDataSource_upgradeTargets (12.35s)
--- PASS: TestAccRDSEngineVersionDataSource_preferred (12.42s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 14.939s |
Hey @md5 👋 Thank you for your contribution, and for checking in on this! Unfortunately, I'm not able to provide an estimate on when this will be merged/reviewed due to the potential of shifting priorities (we prioritize work by count of ":+1:" reactions, as well as a few other things). For more information on how we prioritize, check out out prioritization guide. |
That's all well and good, but I see a bunch of PRs opened since mine was opened that have no 👍 at all that have already been merged. For example, this one was opened and merged within the past 5 hours: #27620. It doesn't even have an open issue that it was addressing. |
Hey @md5 👋 That's a great callout, and this is something that I'll start to think of how we can be a bit more clear about in the prioritization guide. I realize that you're making a more general statement and aren't pointing to that one PR in particular, but that one was contributed by a user who is in the top five all time contributors to the provider. It's sometimes the case that the team is able to review contributions from folks who contribute regularly a bit more quickly. This is also true with small documentation fixes -- I'm the Technical Community Manager for the AWS provider, and while doing my daily triage I'll often get those merged in almost immediately. I saw that you also commented on #27342. I just wanted to mention that both the author and reviewer are community members like yourself, and that it has not been prioritized or reviewed by the AWS provider team at this point. I suspect that PR will be closed in favor of this one since you've added |
@justinretzolk thanks for the clarification on #27342. I should have noticed that the reviewer was not a project member. The fact that GitHub uses "Contributor" and "Member" with the same badge styling and prominence has a tendency to confuse me. |
Allows a major version to be specified for "version" and only get back a single minor version
e3f2ae1
to
683de17
Compare
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 PKG=rds TESTS=TestAccRDSEngineVersionDataSource
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 20 -run='TestAccRDSEngineVersionDataSource' -timeout 180m
=== RUN TestAccRDSEngineVersionDataSource_basic
=== PAUSE TestAccRDSEngineVersionDataSource_basic
=== RUN TestAccRDSEngineVersionDataSource_upgradeTargets
=== PAUSE TestAccRDSEngineVersionDataSource_upgradeTargets
=== RUN TestAccRDSEngineVersionDataSource_preferred
=== PAUSE TestAccRDSEngineVersionDataSource_preferred
=== RUN TestAccRDSEngineVersionDataSource_defaultOnlyImplicit
=== PAUSE TestAccRDSEngineVersionDataSource_defaultOnlyImplicit
=== RUN TestAccRDSEngineVersionDataSource_defaultOnlyExplicit
=== PAUSE TestAccRDSEngineVersionDataSource_defaultOnlyExplicit
=== RUN TestAccRDSEngineVersionDataSource_includeAll
=== PAUSE TestAccRDSEngineVersionDataSource_includeAll
=== RUN TestAccRDSEngineVersionDataSource_filter
=== PAUSE TestAccRDSEngineVersionDataSource_filter
=== CONT TestAccRDSEngineVersionDataSource_basic
=== CONT TestAccRDSEngineVersionDataSource_defaultOnlyExplicit
=== CONT TestAccRDSEngineVersionDataSource_preferred
=== CONT TestAccRDSEngineVersionDataSource_defaultOnlyImplicit
=== CONT TestAccRDSEngineVersionDataSource_filter
=== CONT TestAccRDSEngineVersionDataSource_includeAll
=== CONT TestAccRDSEngineVersionDataSource_upgradeTargets
--- PASS: TestAccRDSEngineVersionDataSource_includeAll (15.65s)
--- PASS: TestAccRDSEngineVersionDataSource_upgradeTargets (15.72s)
--- PASS: TestAccRDSEngineVersionDataSource_filter (15.75s)
--- PASS: TestAccRDSEngineVersionDataSource_defaultOnlyExplicit (15.83s)
--- PASS: TestAccRDSEngineVersionDataSource_defaultOnlyImplicit (15.87s)
--- PASS: TestAccRDSEngineVersionDataSource_basic (15.97s)
--- PASS: TestAccRDSEngineVersionDataSource_preferred (16.72s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 19.347s
Thanks for your contribution @md5 👏 |
This functionality has been released in v4.39.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. |
This PR adds support for
default_only
,include_all
, andfilter
to theaws_rds_engine_version
data source. Adding these flags make it possible to get the default minor version given only a major version for an engine, to distinguish betweenprovisioned
andserverless
engine modes, or to allow querying of deprecated versions, among other things.Closes #19715
Closes #26867