oracle-terraform-modules / terraform-oci-drg

A reusable and extensible Terraform module that provisions a Dynamic Routing Gateway on Oracle Cloud Infrastructure
Universal Permissive License v1.0
2 stars 5 forks source link

Add vcn_route_type for oci_core_drg_attachment.vcns #17

Open chrisgilmerproj opened 3 months ago

chrisgilmerproj commented 3 months ago

Community note

Description

Users should be able to set vcn_route_type when using the module and creating drg_vcn_attachments.

New or existing resource(s)

Example Terraform configuration

The current code looks like:

  network_details {
    id             = each.value.vcn_id                                                                          # required
    route_table_id = each.value.vcn_transit_routing_rt_id != null ? each.value.vcn_transit_routing_rt_id : null # optional. Only needed when using VCN Transit Routing or Network Appliance service chaining
    type           = "VCN"                                                                                      # Required
  }

I would like it to look like:

  network_details {
    id             = each.value.vcn_id                                                                          # required
    route_table_id = each.value.vcn_transit_routing_rt_id != null ? each.value.vcn_transit_routing_rt_id : null # optional. Only needed when using VCN Transit Routing or Network Appliance service chaining
    type           = "VCN"                                                                                      # Required
    vcn_route_type = each.value.vcn_route_type != null ? each.value.vcn_route_type : null                       # (Optional) (Updatable) string
  }

References