We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4861eaa commit 28c4468Copy full SHA for 28c4468
compute.tf
@@ -39,7 +39,7 @@ resource "oci_core_instance" "bastion" {
39
40
metadata = {
41
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
+ user_data = var.bastion_image_id == "Autonomous" ? data.cloudinit_config.bastion.rendered : null
43
}
44
45
shape = lookup(var.bastion_shape, "shape", "VM.Standard.E2.2")
0 commit comments