output "bastion_id" { description = "Use with oci bastion session create-managed-ssh." value = oci_bastion_bastion.main.id } output "subnet_id" { description = "Put instances here, with the Bastion plugin of Oracle Cloud Agent enabled." value = oci_core_subnet.private.id } output "nsg_id" { description = "Attach to every instance operators reach." value = oci_core_network_security_group.workloads.id } output "verify" { description = "Checks." value = <<-EOT Confirm the subscription email first. As an operator, from an allowed range: oci bastion session create-managed-ssh --bastion-id ${oci_bastion_bastion.main.id} --target-resource-id --target-os-username ${var.os_username} --ssh-public-key-file ~/.ssh/id_ed25519.pub The same command with --target-os-username root is refused. From any other address, the SSH command the session prints times out. The session email arrives within a few minutes of creating the session. EOT }