mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 07:01:56 +03:00
Merge pull request #56 from jsauni/demo-9-destroy-command-issue
Added stop_instance_before_detaching argument to aws_volume_attachmen…
This commit is contained in:
+4
-3
@@ -22,8 +22,9 @@ resource "aws_ebs_volume" "ebs-volume-1" {
|
||||
}
|
||||
|
||||
resource "aws_volume_attachment" "ebs-volume-1-attachment" {
|
||||
device_name = "/dev/xvdh"
|
||||
volume_id = aws_ebs_volume.ebs-volume-1.id
|
||||
instance_id = aws_instance.example.id
|
||||
device_name = "/dev/xvdh"
|
||||
volume_id = aws_ebs_volume.ebs-volume-1.id
|
||||
instance_id = aws_instance.example.id
|
||||
stop_instance_before_detaching = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user