File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,14 @@ module "vcn" {
7878}
7979
8080module "drg" {
81- count = tobool (var. create_drg ) || var. drg_id != null ? 1 : 0
82- source = " oracle-terraform-modules/drg/oci"
83- version = " 1.0.5"
84- compartment_id = coalesce (var. network_compartment_id , local. compartment_id )
81+ count = tobool (var. create_drg ) || var. drg_id != null ? 1 : 0
82+ source = " oracle-terraform-modules/drg/oci"
83+ version = " 1.0.6"
84+ compartment_id = coalesce (var. network_compartment_id , local. compartment_id )
85+ drg_compartment_id = var. drg_compartment_id
8586
86- drg_id = one ([var . drg_id ]) # existing DRG ID or null
87- drg_display_name = coalesce (var. drg_display_name , " oke-${ local . state_id } " )
87+ drg_id = one ([var . drg_id ]) # existing DRG ID or null
88+ drg_display_name = coalesce (var. drg_display_name , " oke-${ local . state_id } " )
8889 drg_vcn_attachments = tobool (var. create_drg ) ? { for k , v in module . vcn : k => {
8990 # gets the vcn_id values dynamically from the vcn module
9091 vcn_id : v.vcn_id
Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ variable "drg_id" {
7979 type = string
8080}
8181
82+ variable "drg_compartment_id" {
83+ default = null
84+ description = " Compartment for the DRG resource. Can be used to override network_compartment_id."
85+ type = string
86+ }
87+
8288variable "drg_attachments" {
8389 description = " DRG attachment configurations."
8490 type = any
You can’t perform that action at this time.
0 commit comments