Skip to content

Commit bb7d93f

Browse files
committed
Update bastion.tf
1 parent 6258a3b commit bb7d93f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bastion.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ resource "oci_core_volume_backup_policy" "bastion_boot_volume_backup_policy" {
3030
}
3131

3232
resource "oci_core_volume_backup_policy_assignment" "boot_volume_backup_policy" {
33+
count = var.bastion_boot_volume_backup ? 1 : 0
3334
depends_on = [oci_core_volume_backup_policy.bastion_boot_volume_backup_policy]
3435
asset_id = oci_core_instance.bastion.boot_volume_id
3536
policy_id = oci_core_volume_backup_policy.bastion_boot_volume_backup_policy[0].id

0 commit comments

Comments
 (0)