skip destroy for volume attachment

This commit is contained in:
Edward Viaene
2019-12-29 14:16:14 +01:00
parent 10cc255732
commit 4d02efc14e
+4 -3
View File
@@ -25,8 +25,9 @@ resource "aws_ebs_volume" "ebs-volume-1" {
}
resource "aws_volume_attachment" "ebs-volume-1-attachment" {
device_name = var.INSTANCE_DEVICE_NAME
volume_id = aws_ebs_volume.ebs-volume-1.id
instance_id = aws_instance.example.id
device_name = var.INSTANCE_DEVICE_NAME
volume_id = aws_ebs_volume.ebs-volume-1.id
instance_id = aws_instance.example.id
skip_destroy = true # skip destroy to avoid issues with terraform destroy
}