feat(oci): define separate distinct provider instances

This commit is contained in:
Kat Inskip 2024-06-08 17:49:11 -07:00
parent 1e79f4f23c
commit 571fa04dba
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
7 changed files with 55 additions and 65 deletions

View file

@ -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

View file

@ -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
}