mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 05:01:55 +03:00
skip destroy for volume attachment
This commit is contained in:
+4
-3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user