Skip to content
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

provider/aws: Prevent users from mixing top-level and nested EBS volume declarations at validate stage #3511

Closed
catsby opened this issue Oct 15, 2015 · 3 comments

Comments

@catsby
Copy link
Contributor

catsby commented Oct 15, 2015

Users should not be able to both specify any ebs_block_devices in an instance, as well as have that instance included in a volume_attachment resource.

Doing so causes a plan/refresh loop, due to the conflicting count of EBS Block devices.

See #3262 as an example

@gtmtech
Copy link

gtmtech commented Feb 25, 2016

@catsby Is there any chance of making terraform so that these CAN co-exist.

Its useful to be able to have one ebs volume with delete_on_termination, and one without.

Either that or the aws_volume_attachment resource needs a delete_on_termination too, so if the instance is removed, it propagates to removing the volume too.

@mitchellh
Copy link
Contributor

Hey @catsby, closing this since we're not working on it atm and I actually do believe there are enhancement requests for a global validation function. We'll leave it at that for now.

@ghost
Copy link

ghost commented Apr 21, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants