create ssh key for compute instances

This commit is contained in:
2024-05-24 16:18:39 +06:00
parent e80919d3be
commit be39b066c5
4 changed files with 29 additions and 0 deletions
+11
View File
@@ -71,3 +71,14 @@ output "vcn_ipv6_cidr_private_blocks" {
description = "The IPv6 CIDR block for the VCN"
value = oci_core_vcn.vcn.ipv6private_cidr_blocks
}
output "ssh_key_public" {
description = "The public SSH key for the compute instances"
value = local.compute_ssh_key
}
output "ssh_key_private" {
description = "The created SSH private key for the compute instances"
value = try(tls_private_key.ssh_key[0].private_key_pem, null)
sensitive = true
}