mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat(oci): define separate distinct provider instances
This commit is contained in:
parent
1e79f4f23c
commit
571fa04dba
7 changed files with 55 additions and 65 deletions
|
|
@ -1,3 +1,7 @@
|
|||
variable "tenancy_ocid" {
|
||||
type = string
|
||||
}
|
||||
|
||||
resource "oci_identity_compartment" "this" {
|
||||
# Compartment ID is Tenancy ID for this case
|
||||
compartment_id = var.tenancy_ocid
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
variable "tenancy_ocid" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "user_ocid" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "private_key" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "fingerprint" {
|
||||
type = string
|
||||
}
|
||||
|
||||
# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformgettingstarted.htm
|
||||
provider "oci" {
|
||||
tenancy_ocid = var.tenancy_ocid
|
||||
user_ocid = var.user_ocid
|
||||
private_key = var.private_key
|
||||
region = var.region
|
||||
fingerprint = var.fingerprint
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue