mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat(oci): fix compartment provider configuration, expose TLS
This commit is contained in:
parent
89bb3f5383
commit
3711cf0255
2 changed files with 10 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm
|
||||
provider "oci" {
|
||||
alias = "oci_compartment"
|
||||
private_key = module.oci_compartment_bootstrap.child_compartment_key_value
|
||||
private_key = module.oci_compartment_bootstrap.child_compartment_private_key
|
||||
region = var.oci_compartment_bootstrap_region
|
||||
tenancy_ocid = module.oci_compartment_bootstrap.child_compartment_id
|
||||
user_ocid = module.oci_compartment_bootstrap.child_user_id
|
||||
|
|
|
|||
|
|
@ -8,4 +8,12 @@ resource "tls_private_key" "this" {
|
|||
locals {
|
||||
child_compartment_private_key = tls_private_key.this.private_key_pem
|
||||
child_compartment_public_key = tls_private_key.this.public_key_pem
|
||||
}
|
||||
}
|
||||
|
||||
output "child_compartment_private_key" {
|
||||
value = local.child_compartment_private_key
|
||||
}
|
||||
|
||||
output "child_compartment_public_key" {
|
||||
value = local.child_compartment_public_key
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue