You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while running terraform destroy it deletes the EBS volume as well along with the instance, we do not want that for production. The EBS volume should just be detached and not destroyed/deleted
#17889
Closed
ruchikhanuja opened this issue
Apr 18, 2018
· 2 comments
when do terraform destroy only the instance should be destroyed and not the EBS volume
Actual Behavior
with terraform destroy EBS volume is also getting deleted, though skip_destroy = true
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered:
ruchikhanuja
changed the title
while running terraform destroy it destroys the EBS volume as well along with the instance, we do not want that for production. The EBS volume should just be detached and not destroyed
while running terraform destroy it deletes the EBS volume as well along with the instance, we do not want that for production. The EBS volume should just be detached and not destroyed
Apr 18, 2018
ruchikhanuja
changed the title
while running terraform destroy it deletes the EBS volume as well along with the instance, we do not want that for production. The EBS volume should just be detached and not destroyed
while running terraform destroy it deletes the EBS volume as well along with the instance, we do not want that for production. The EBS volume should just be detached and not destroyed/deleted
Apr 18, 2018
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
locked and limited conversation to collaborators
Apr 3, 2020
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.11.7
Terraform Configuration Files
resource "aws_ebs_volume" "storage" {
availability_zone = "${data.aws_subnet.this.availability_zone}"
type = "${var.ebs_storage_type}"
size = "${var.ebs_storage_size}"
}
resource "aws_volume_attachment" "ebs_assoc" {
depends_on = ["aws_ebs_volume.storage"]
device_name = "/xyz"
volume_id = "${aws_ebs_volume.storage.*.id[count.index]}"
instance_id = "${module.brokers.instance_ids[count.index]}"
skip_destroy = true
}
Debug Output
Crash Output
Expected Behavior
when do terraform destroy only the instance should be destroyed and not the EBS volume
Actual Behavior
with terraform destroy EBS volume is also getting deleted, though skip_destroy = true
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered: