-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Additional EBS volumes are re-attached when an instance is recreated #116
Comments
I have done some further analysis of the bug.
=> the |
@BernhardBerbuir I think you can try to use Check this for more details - https://www.terraform.io/docs/configuration/resources.html#when-to-use-for_each-instead-of-count Unfortunately, it is not possible to specify variables inside There is nothing we can do in the module, so I am closing this issue. |
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. |
When tainting an EC2 Instance which belongs to a group of instances with externally attached volumes then all externally attached volumes are re-attached.
How to reproduce:
terraform apply
As a result Terraform re-creates the volume attachments for all instances
I assume that this happens because the additional EBS volumes are created and attached outside of the module.
I could create a pull request which creates
aws_ebs_volume
andaws_volume_attachment
inside the module, if it's ok.The text was updated successfully, but these errors were encountered: