Skip to content

Commit 55e5369

Browse files
committed
fix(instance): trigger the mount script on volume attachment changes
1 parent 8955dc7 commit 55e5369

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

instance_volume.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ resource "null_resource" "remote_exec" {
3939
oci_core_volume_attachment.volume_attachment,
4040
]
4141

42+
triggers = {
43+
volume_attachment_id = oci_core_volume_attachment.volume_attachment.id # Trigger on volume attachment changes
44+
}
45+
4246
provisioner "remote-exec" {
4347
connection {
4448
agent = false

0 commit comments

Comments
 (0)