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:
Edward Viaene
2022-06-14 21:34:25 -04:00
committed by GitHub
+4 -3
View File
@@ -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
}