feat: add routing table and route IDs to module outputs#1143
Conversation
The module creates routing tables and routes but did not expose their IDs, making it difficult for consumers to reference them. This adds `routing_table_ids` and `routing_table_routes` outputs. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@rajatagarwal-ibm @maheshwarishikha I recently came across a use case where we needed to use the route table ids to pass in to the other module. Please feel free to add comments to suggestions. |
|
/run pipeline |
|
@manish-jangra you must be in the team github-collaborators in order to trigger the pipeline. |
Expose the VPC's default routing table ID and name via a new `default_routing_table` output, sourced from the `data.ibm_is_vpc` data source so it works for both created and existing VPCs. Made-with: Cursor
|
@manish-jangra Thank you for the PR. |
Propagate the three new routing table outputs (default_routing_table, routing_table_ids, routing_table_routes) to the fully-configurable deployable architecture solution. Made-with: Cursor
@maheshwarishikha those outputs have been added to DA code, thanks |
|
/run pipeline |
Run terraform-docs to update the Outputs tables in the root module and fully-configurable DA solution README files. Made-with: Cursor
|
@maheshwarishikha It looks I forgot to update the README file and that caused CI to fail. This probbaly needs another approval and |
|
/run pipeline |
|
@manish-jangra you must be in the team github-collaborators in order to trigger the pipeline. |
|
@rajatagarwal-ibm @maheshwarishikha sorry to ping you both, can we make this change through? |
@rajatagarwal-ibm @maheshwarishikha Just wanted to check, if you happened to look at this pull request. |
|
/run pipeline |
|
Addon test failed during undeploy - Rerunning... |
|
/run pipeline |
|
Add on test is failed this time - because of vpn gateway. It was passed in last run. unrelated to this PR. |
|
/run pipeline |
|
@manish-jangra I fixed the docs in your PR, now its ready to merge. Please do note that you just need to run pre-commit, it automatically takes care of the docs update. And you do not need to add any additional tags in readme. |
|
🎉 This PR is included in version 8.16.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Description
The module creates VPC routing tables (
ibm_is_vpc_routing_table) and routing table routes (ibm_is_vpc_routing_table_route) but does not expose their IDs or details in the module outputs. Additionally, the VPC's default routing table (automatically created with every VPC) is not surfaced either. This makes it difficult for consumers to reference routing tables in downstream resources or modules.This PR adds three new outputs to
outputs.tf:default_routing_table— An object containing therouting_table_idandrouting_table_nameof the VPC's default routing table. Sourced fromdata.ibm_is_vpcso it works for both created and existing VPCs.routing_table_ids— A list of objects containing thenameandrouting_table_idfor each custom routing table created by the module.routing_table_routes— A list of objects containing thename,routing_table_id,destination,action,next_hop, andzonefor each routing table route.All outputs are backward-compatible:
default_routing_tableis always populated, while the other two return empty lists when no custom routes are configured via theroutesvariable.Release required?
x.x.X)x.X.x)X.x.x)Release notes content
Three new outputs have been added to the module:
default_routing_table: Exposes the ID and name of the VPC's default routing table.routing_table_ids: Exposes the name and ID of each custom VPC routing table created by the module.routing_table_routes: Exposes details (name, routing table ID, destination, action, next hop, zone) of each routing table route created by the module.No breaking changes.
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers