-
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
r/aws_rds_cluster: allow restore via cluster_resource_id to restore deleted clusters #38540
r/aws_rds_cluster: allow restore via cluster_resource_id to restore deleted clusters #38540
Conversation
Community NoteVoting for Prioritization
For Submitters
|
43f011f
to
08186cd
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! 🚀
Note, syntax-wise the PR looks good. I’m trying to better understand the exact problem you’ve outlined and why source_cluster_identifier
is required in the AWS API specification. Other than that, it looks good.
As always, @aristosvo, thank you for your time and valuable contributions. |
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.
@aristosvo Thanks for the contribution 🎉 👏.
% make testacc TESTARGS='-run=TestAccRDSCluster_basic\|TestAccRDSCluster_pointInTimeRestore' PKG=rds
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/rds/... -v -count 1 -parallel 20 -run=TestAccRDSCluster_basic\|TestAccRDSCluster_pointInTimeRestore -timeout 360m
=== RUN TestAccRDSCluster_basic
=== PAUSE TestAccRDSCluster_basic
=== RUN TestAccRDSCluster_pointInTimeRestore
=== PAUSE TestAccRDSCluster_pointInTimeRestore
=== RUN TestAccRDSCluster_pointInTimeRestoreViaResourceID
=== PAUSE TestAccRDSCluster_pointInTimeRestoreViaResourceID
=== CONT TestAccRDSCluster_basic
=== CONT TestAccRDSCluster_pointInTimeRestoreViaResourceID
=== CONT TestAccRDSCluster_pointInTimeRestore
--- PASS: TestAccRDSCluster_basic (118.83s)
--- PASS: TestAccRDSCluster_pointInTimeRestoreViaResourceID (325.84s)
--- PASS: TestAccRDSCluster_pointInTimeRestore (328.22s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 333.260s
% make testacc TESTARGS='-run=TestAccRDSCustomDBEngineVersion_' PKG=rds
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/rds/... -v -count 1 -parallel 20 -run=TestAccRDSCustomDBEngineVersion_ -timeout 360m
=== RUN TestAccRDSCustomDBEngineVersion_sqlServer
custom_db_engine_version_test.go:36: Environment variable RDS_CUSTOM_WINDOWS_SQLSERVER_AMI is not set
--- SKIP: TestAccRDSCustomDBEngineVersion_sqlServer (0.00s)
=== RUN TestAccRDSCustomDBEngineVersion_sqlServerUpdate
custom_db_engine_version_test.go:81: Environment variable RDS_CUSTOM_WINDOWS_SQLSERVER_AMI is not set
--- SKIP: TestAccRDSCustomDBEngineVersion_sqlServerUpdate (0.00s)
=== RUN TestAccRDSCustomDBEngineVersion_oracle
custom_db_engine_version_test.go:136: Environment variable RDS_CUSTOM_ORACLE_S3_BUCKET is not set
--- SKIP: TestAccRDSCustomDBEngineVersion_oracle (0.00s)
=== RUN TestAccRDSCustomDBEngineVersion_manifestFile
custom_db_engine_version_test.go:181: Environment variable RDS_CUSTOM_ORACLE_S3_BUCKET is not set
--- SKIP: TestAccRDSCustomDBEngineVersion_manifestFile (0.00s)
=== RUN TestAccRDSCustomDBEngineVersion_tags
custom_db_engine_version_test.go:226: Environment variable RDS_CUSTOM_WINDOWS_SQLSERVER_AMI is not set
--- SKIP: TestAccRDSCustomDBEngineVersion_tags (0.00s)
=== RUN TestAccRDSCustomDBEngineVersion_disappears
custom_db_engine_version_test.go:263: Environment variable RDS_CUSTOM_WINDOWS_SQLSERVER_AMI is not set
--- SKIP: TestAccRDSCustomDBEngineVersion_disappears (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 4.941s
This functionality has been released in v5.61.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. |
Description
restore_to_point_in_time
has already asource_cluster_identifier
parameter, but this has one major drawback, as specified in the AWS SDK: it must match the identifier of an existing DBCluster.This is not the case for the
source_cluster_resource_id
, which is unique (you can create, delete and recreate a cluster with the same ARN, which will have different resource IDs). Restore of an automated backup of a deleted database cluster is only possible withsource_cluster_resource_id
.Relations
Fixes #38549
References
Output from Acceptance Testing