-
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_ebs_volume: Termination Snapshot #2715
r/aws_ebs_volume: Termination Snapshot #2715
Conversation
Hi @johananl! I can't speak for the Terraform team with regards to the first question (I'm not aware of much additional functionality outside of the AWS API implemented like this), but I can provide some guidance on the second: Testing in this case consists of a bunch of steps - create an instance with a volume, destroy it, and ensure that the termination snapshot is created. Also ensure that no snapshot is created if the option is not enabled (an existing test can likely be modified for this). You'll then want to tidy up the created snapshot so it doesn't sit around indefinitely. A good example might be the tests that attach a volume to an instance - you'll likely need multiple test steps. |
Thanks for answering those, @jen20 ! An example pattern you could follow is with For now, I would suggest this PR/effort to focus on only |
a2f74c1
to
873645f
Compare
873645f
to
24a21fc
Compare
8048f8e
to
f851f90
Compare
d549d08
to
f2ece81
Compare
9124b92
to
6698621
Compare
6698621
to
1ac5e84
Compare
Hey @catsby. Just wanted to make sure you guys have noticed I removed the [WIP] from this PR :-) Any feedback is welcome! |
Can this PR still be merged? I have a use case for this that will cut my costs substantially. Thank you for your contribution, @johananl. 😃 |
Hi @DanielMarquard and @johananl! I've had a look through the code here and it looks good to me. However, it needs further input from someone at HashiCorp about whether they wish to implement things which don't map 1:1 to an available API function, and I don't want to merge this until that happens. Thanks for contributing! |
It may not be a 1:1 API function, but I'm pretty sure it's supported in CloudFormation, so to me it would make sense to be included as part of Terraform. Hope it gets approved. 😃 |
Thanks for the feedback @jen20 @DanielMarquard.
Please see #2109 which was opened by @catsby from HashiCorp. I actually raised the same question before implementing this and the answer was - yes, we should implement it. However, I agree it's better if someone from HashiCorp takes a look before merging. |
Any input from Hashicorp on this merge request? We really need this at the Department of Justice, among other departments my company contracts to. |
Any updates on this? Looking at following this approach (similar to RDS) for certain EBS volumes. If it's not happening, then may need to consider another option. |
@catsby @bill-rich - would love to get your feedback on this. There is also a similar issue which can probably be resolved in a similar way. I'll go ahead and implement it as soon as this one is done. If there are changes required I'd love to quickly push fixes. Waiting eagerly for your feedback :-) |
1ac5e84
to
d74ab5a
Compare
Rebased over current CI is green. @catsby @bill-rich @aeschright I'm not losing hope! ;-) |
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. |
Superseded by #11118. |
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 addresses issue #2109 by @catsby (termination snapshot for EBS volumes).