2024-05-23 13:26:58 +06:00
|
|
|
output "tenancy_id" {
|
|
|
|
description = "The ID of the tenancy"
|
|
|
|
value = var.tenancy_id
|
|
|
|
}
|
|
|
|
|
|
|
|
output "tenancy_name" {
|
|
|
|
description = "The name of the tenancy"
|
|
|
|
value = data.oci_identity_tenancy.tenancy.name
|
|
|
|
}
|
|
|
|
|
|
|
|
output "compartment_id" {
|
|
|
|
description = "The ID of the created compartment"
|
|
|
|
value = oci_identity_compartment.compartment.id
|
|
|
|
}
|
|
|
|
|
|
|
|
output "compartment_name" {
|
|
|
|
description = "The name of the created compartment"
|
|
|
|
value = oci_identity_compartment.compartment.name
|
|
|
|
}
|
|
|
|
|
|
|
|
output "admin_user_id" {
|
|
|
|
description = "The ID of the admin user"
|
|
|
|
value = oci_identity_user.admin.id
|
|
|
|
}
|
|
|
|
|
|
|
|
output "customer_key_id" {
|
|
|
|
description = "The ID of the customer key"
|
|
|
|
value = try(oci_identity_customer_secret_key.admin[0].id, null)
|
|
|
|
}
|
|
|
|
|
|
|
|
output "customer_key_key" {
|
|
|
|
description = "The ID of the customer key"
|
|
|
|
value = try(oci_identity_customer_secret_key.admin[0].key, null)
|
2024-05-24 16:14:31 +06:00
|
|
|
sensitive = true
|
2024-05-23 13:26:58 +06:00
|
|
|
}
|
|
|
|
|
|
|
|
output "admin_initial_password" {
|
|
|
|
description = "The initial password of the admin user"
|
|
|
|
value = try(oci_identity_ui_password.admin_initial[0].password, null)
|
2024-05-24 16:14:31 +06:00
|
|
|
sensitive = true
|
2024-05-23 13:26:58 +06:00
|
|
|
}
|
|
|
|
|
|
|
|
output "admin_auth_token" {
|
|
|
|
description = "The auth token of the admin user"
|
|
|
|
value = try(oci_identity_auth_token.admin[0].token, null)
|
2024-05-24 16:14:31 +06:00
|
|
|
sensitive = true
|
2024-05-23 13:26:58 +06:00
|
|
|
}
|
|
|
|
|
|
|
|
output "api_key_private" {
|
|
|
|
description = "The private part of the admin user API key"
|
|
|
|
value = try(tls_private_key.admin_api_key[0].private_key_pem, null)
|
2024-05-24 16:14:31 +06:00
|
|
|
sensitive = true
|
2024-05-23 13:26:58 +06:00
|
|
|
}
|
|
|
|
|
|
|
|
output "api_key_fingerprint" {
|
|
|
|
description = "The fingerprint of the admin user API key"
|
|
|
|
value = try(oci_identity_api_key.admin[0].fingerprint, null)
|
|
|
|
}
|
2024-05-24 16:17:53 +06:00
|
|
|
|
|
|
|
output "vcn_cidr_blocks" {
|
|
|
|
description = "The CIDR block for the VCN"
|
|
|
|
value = oci_core_vcn.vcn.cidr_blocks
|
|
|
|
}
|
|
|
|
|
|
|
|
output "vcn_ipv6_cidr_blocks" {
|
|
|
|
description = "The IPv6 CIDR block for the VCN"
|
|
|
|
value = oci_core_vcn.vcn.ipv6cidr_blocks
|
|
|
|
}
|
|
|
|
|
|
|
|
output "vcn_ipv6_cidr_private_blocks" {
|
|
|
|
description = "The IPv6 CIDR block for the VCN"
|
|
|
|
value = oci_core_vcn.vcn.ipv6private_cidr_blocks
|
|
|
|
}
|
2024-05-24 16:18:39 +06:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|