File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ data "oci_identity_compartment" "compartment" {
12
12
id = var. compartment_ocid
13
13
}
14
14
15
+ // tenancy data if onboarding a tenancy
16
+ data "oci_identity_tenancy" "tenancy" {
17
+ count = var. compartment_ocid == " " ? 1 : 0
18
+ tenancy_id = var. tenancy_ocid
19
+ }
20
+
15
21
16
22
// random suffix for policy name
17
23
resource "random_id" "suffix" {
@@ -48,6 +54,7 @@ resource "sysdig_secure_cloud_auth_account" "oracle_account" {
48
54
// when compartmentID is not specified, default to the rootCompartmentOCID which is the same value as tenancyOCID
49
55
provider_id = var. compartment_ocid == " " ? var. tenancy_ocid : var. compartment_ocid
50
56
provider_type = " PROVIDER_ORACLECLOUD"
57
+ provider_alias = var. compartment_ocid == " " ? data. oci_identity_tenancy . tenancy [0 ]. name : data. oci_identity_compartment . compartment [0 ]. name
51
58
52
59
component {
53
60
type = " COMPONENT_SERVICE_PRINCIPAL"
You can’t perform that action at this time.
0 commit comments