Added stop_instance_before_detaching argument to aws_volume_attachment resource

This commit is contained in:
Jacob Sauni
2022-06-15 11:01:19 +10:00
parent 8ef05a97ea
commit 1fa263e35d
+4 -3
View File
@@ -22,8 +22,9 @@ resource "aws_ebs_volume" "ebs-volume-1" {
} }
resource "aws_volume_attachment" "ebs-volume-1-attachment" { 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
} }