Skip to content

Commit 28c4468

Browse files
authored
fix: made autonomous cloud init template optional. It will only be (#49)
used when Autonomous is chosen Signed-off-by: Ali Mukadam <[email protected]>
1 parent 4861eaa commit 28c4468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compute.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ resource "oci_core_instance" "bastion" {
3939

4040
metadata = {
4141
ssh_authorized_keys = (var.ssh_public_key != "") ? var.ssh_public_key : (var.ssh_public_key_path != "none") ? file(var.ssh_public_key_path) : ""
42-
user_data = data.cloudinit_config.bastion.rendered
42+
user_data = var.bastion_image_id == "Autonomous" ? data.cloudinit_config.bastion.rendered : null
4343
}
4444

4545
shape = lookup(var.bastion_shape, "shape", "VM.Standard.E2.2")

0 commit comments

Comments
 (0)