mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 07:01:56 +03:00
Added stop_instance_before_detaching argument to aws_volume_attachment resource
This commit is contained in:
@@ -25,5 +25,6 @@ resource "aws_volume_attachment" "ebs-volume-1-attachment" {
|
|||||||
device_name = "/dev/xvdh"
|
device_name = "/dev/xvdh"
|
||||||
volume_id = aws_ebs_volume.ebs-volume-1.id
|
volume_id = aws_ebs_volume.ebs-volume-1.id
|
||||||
instance_id = aws_instance.example.id
|
instance_id = aws_instance.example.id
|
||||||
|
stop_instance_before_detaching = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user