Closed smathews closed 8 months ago
Hi @smathews
There is field with routing_table
which stores the id value, please use ibm_is_vpc_routing_table.test_route_rt.routing_table
instead of routing_table = split("/", ibm_is_vpc_routing_table.transit.id)[1]
Thank you
Sunitha
@smathews Can you please verify as suggested above and confirm us ?
@smathews is this good to close ?
Thanks all. It does work. However, it does not match with the schemas of the other VPC resources.
Child resources have id in the format of
@sumitkumartiwari @astha-jain This can be closed now.
Closing based on @deepaksibm comment
Terraform CLI and Terraform IBM Provider Version
Terraform v1.5.4 on linux_amd64
Affected Resource(s)
resource ibm_is_vpc_routing_table
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
│ Error: /v1/vpcs/r006-9d782181-337d-41fe-95b8-7e89b85e5547/routing_tables/r006-9d782181-337d-41fe-95b8-7e89b85e5547/r006-82992649-a4c7-412e-8398-1198c406bddf/routes endpoint not found │ │ with module.vpn.ibm_is_vpc_routing_table_route.vpn_vsi[0], │ on modules/vpn/main.tf line 192, in resource "ibm_is_vpc_routing_table_route" "vpn_vsi": │ 192: resource "ibm_is_vpc_routing_table_route" "vpn_vsi" { │
Panic Output
Expected Behavior
ID should be the ID of the routing table, not a complex variable containing the ID for the VPC and the routing table.
Actual Behavior
ibm_is_vpc_routing_table..id == "/
This causes an issue when you use the newly created routing table and want to add routes to it. You need to split the ID apart from the route table before you can use it for a route.
terraform apply
Important Factoids
References
0000