Skip to content

Commit 5e8f555

Browse files
committed
removing hardcoded compartment id
1 parent f8ebf7a commit 5e8f555

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

feature_store/apigw_terraform/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module "feature_store_networking" {
2727

2828
module "function" {
2929
source = "./modules/function"
30+
tenancy_id = var.tenancy_ocid
3031
authorized_groups = var.authorized_user_groups
3132
compartment_id = local.compartment_id
3233
ocir_path = var.function_img_ocir_url

feature_store/apigw_terraform/modules/function/inputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ variable "authorized_groups" {
1717
variable "name_suffix" {
1818
type = string
1919
}
20+
21+
variable "tenancy_id" {
22+
type = string
23+
}

feature_store/apigw_terraform/modules/function/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data "oci_identity_compartment" "compartment" {
99

1010

1111
resource "oci_identity_dynamic_group" "functions_dg" {
12-
compartment_id = "ocid1.tenancy.oc1..aaaaaaaa462hfhplpx652b32ix62xrdijppq2c7okwcqjlgrbknhgtj2kofa"
12+
compartment_id = var.tenancy_id
1313
description = "FEATURESTORE: Allow Oci functions to inspect identity"
1414
matching_rule = "All {resource.type = 'fnfunc', resource.id = '${oci_functions_function.test_function.id}'}"
1515
name = "Feature_Store_Authorizer_${var.name_suffix}"

0 commit comments

Comments
 (0)