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 8de8934 commit 2a1cbe8Copy full SHA for 2a1cbe8
compute.tf
@@ -38,7 +38,7 @@ resource "oci_core_instance" "bastion" {
38
}
39
40
metadata = {
41
- ssh_authorized_keys = var.ssh_public_key != "" ? var.ssh_public_key : file(var.ssh_public_key_path)
+ 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
43
44
0 commit comments