oracle / terraform-provider-oci

Terraform Oracle Cloud Infrastructure provider
https://www.terraform.io/docs/providers/oci/
Mozilla Public License 2.0
758 stars 674 forks source link

oci_core_default_route_table route_rules issue #1700

Open doubando opened 1 year ago

doubando commented 1 year ago

I have an issue that not able to define a set of route_rules within oci_core_default_route_table resource

VCN Prod Default routing table

resource "oci_core_default_route_table" "default-rt-pub-vcn" { manage_default_resource_id = oci_core_vcn.vcn_prod.default_route_table_id route_rules = [{

Required

network_entity_id = oci_core_internet_gateway.vcn_prod_IG.id
#Optional
destination_type = "CIDR_BLOCK"
destination      = "0.0.0.0/0"
description      = "Defualt route to access Internet"

}, {

Required

network_entity_id = oci_core_local_peering_gateway.LPG_prod.id
#Optional
destination_type = "CIDR_BLOCK"
destination      = "192.168.100.0/24"
description      = "Route to hub VCN and hub public subnet"

}] }

on validation

│ Error: Unsupported argument │ │ on networking.tf line 101, in resource "oci_core_default_route_table" "default-rt-pub-vcn": │ 101: route_rules = [{ │ │ An argument named "route_rules" is not expected here. Did you mean to define a block of type "route_rules"?

How can I represent multiple route tables within the default VCN route table ?

ravinitp commented 1 year ago

Thank you for reporting the issue. We observed the affected resources are not provided in the description or it's incorrect. We request you to add it in issue description as mentioned in below format. Example: affected_resources = oci_core_instance , oci_core_instances

If it's not related to any particular resource then mention affected resource as terraform. Example: affected_resources = terraform

As this works through automation, request you to follow exact syntax.

mglasgow42 commented 8 months ago

Isn't it glaringly obvious?

affected_resources = oci_core_default_route_table