-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_db_snapshot: Shared and public snapshot fix (issue #3907) #5767
base: main
Are you sure you want to change the base?
Conversation
A combination of `snapshot_type = "shared"` and `db_instance_identifier` would always return an empty result set due to the server side filtering against the DB Instance Identifier only considering instance identifiers from the local account, as opposed to from the source account. It is still possible to filter the results client-side, so do that instead.
any update on this merge? I'm having an issue where I want to build an RDS Instance of a shared snapshot but can't. This would solve the issue. |
This issue is also blocking us. Any update? |
Pull request #21306 has significantly refactored the AWS Provider codebase. As a result, most PRs opened prior to the refactor now have merge conflicts that must be resolved before proceeding. Specifically, PR #21306 relocated the code for all AWS resources and data sources from a single We recognize that many pull requests have been open for some time without yet being addressed by our maintainers. Therefore, we want to make it clear that resolving these conflicts in no way affects the prioritization of a particular pull request. Once a pull request has been prioritized for review, the necessary changes will be made by a maintainer -- either directly or in collaboration with the pull request author. For a more complete description of this refactor, including examples of how old filepaths and function names correspond to their new counterparts: please refer to issue #20000. For a quick guide on how to amend your pull request to resolve the merge conflicts resulting from this refactor and bring it in line with our new code patterns: please refer to our Service Package Refactor Pull Request Guide. |
@dougneal would if be possible that you can rebase this branch? |
I have rebased this PR onto the current code here: https://github.com/Gregy/terraform-provider-aws/tree/fix-shared-aws_db_snapshot If you have time you can take it and update this PR with it. I will not create a competing PR. I have also pushed a version of the provider with this functionality integrated into the registry |
This PR seems dead. Any way to revive it? Seems like @Gregy has a resolution. |
Fixes #3907
Changes proposed in this pull request:
snapshot_type
is set toshared
orpublic
;DBInstanceIdentifier
in the query parameters, even ifdb_instance_identifier
is given in the resource declarationdb_instance_identifier
is given in the resource declaration, filter the query results client side before returning them.Output from acceptance testing: