-
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
r/neptune_cluster: fix ignored kms key on snapshot restore #15240. #33413
Conversation
…ored when creating a cluster from a snapshot.
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 @triggan 👋
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! 😃
Note also that PR #15303 could potentially be closed with this PR, as it was an earlier attempt to fix this issue and now has many merge conflicts. |
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 TESTARGS='-run=TestAccNeptuneCluster_restoreFromSnapshot\|TestAccNeptuneCluster_basic' PKG=neptune ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/neptune/... -v -count 1 -parallel 2 -run=TestAccNeptuneCluster_restoreFromSnapshot\|TestAccNeptuneCluster_basic -timeout 180m
=== RUN TestAccNeptuneCluster_basic
=== PAUSE TestAccNeptuneCluster_basic
=== RUN TestAccNeptuneCluster_restoreFromSnapshot
=== PAUSE TestAccNeptuneCluster_restoreFromSnapshot
=== CONT TestAccNeptuneCluster_basic
=== CONT TestAccNeptuneCluster_restoreFromSnapshot
--- PASS: TestAccNeptuneCluster_basic (223.12s)
--- PASS: TestAccNeptuneCluster_restoreFromSnapshot (474.22s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/neptune 493.385s
@triggan Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.17.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
The KMS Key parameter is presently ignored when restoring a snapshot to a new cluster. Users will use this parameter if they want to change the KMS encryption key of the new cluster to be different than that of the key used by the snapshot. It is also used when a user wants to create a new encrypted cluster from an unencrypted snapshot, per Issue #15240 .
This PR also modifies the existing test for restoring from a snapshot to include the KMS key parameter.
Relations
Closes #15240.
Closes #15303.
References
https://docs.aws.amazon.com/neptune/latest/apiref/API_RestoreDBClusterFromSnapshot.html
Output from Acceptance Testing