Skip to content

Commit

Permalink
create OKE VCN DRG attachment when existing DRG is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
robo-cap authored and hyder committed Apr 5, 2024
1 parent e2be128 commit 9d22e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module-network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module "drg" {

drg_id = one([var.drg_id]) # existing DRG ID or null
drg_display_name = coalesce(var.drg_display_name, "oke-${local.state_id}")
drg_vcn_attachments = tobool(var.create_drg) ? { for k, v in module.vcn : k => {
drg_vcn_attachments = tobool(var.create_drg) || var.drg_id != null ? { for k, v in module.vcn : k => {
# gets the vcn_id values dynamically from the vcn module
vcn_id : v.vcn_id
vcn_transit_routing_rt_id : null
Expand Down

0 comments on commit 9d22e9b

Please sign in to comment.