Skip to content

Conversation

@mr-robot-in
Copy link
Contributor

@mr-robot-in mr-robot-in commented Dec 3, 2025

Old behavior (when routeTableStringFormat is false or unset): keeps using ${subnetGroupName}${routeIndex}RouteEntry.
New behavior (when routeTableStringFormat is true): uses ${subnetGroupName}-${routeName-or-sanitized-cidr}-Route, consistent with SubnetStack and honoring route.routeName if provided.


Note

Adds routeTableStringFormat to ISubnetsProps and uses it to format subnet route table entry names; updates README and API docs.

  • Network construct (src/constructs/network.ts):
    • Adds optional ISubnetsProps.routeTableStringFormat.
    • Uses it to compute route IDs when calling subnet.addRoute, switching from ${subnetGroupName}${routeIndex}RouteEntry to ${subnetGroupName}-${routeName|sanitized-cidr}-Route when enabled, honoring route.routeName.
  • Docs:
    • API: documents ISubnetsProps.routeTableStringFormat.
    • README: notes configurable route table entry naming feature.

Written by Cursor Bugbot for commit 881c03b. This will update automatically on new commits. Configure here.

…oute, consistent with SubnetStack and honoring route.routeName if provided.
@mr-robot-in mr-robot-in merged commit d5c3c7c into main Dec 3, 2025
11 of 12 checks passed
@mr-robot-in mr-robot-in deleted the fix/routeNaming branch December 3, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants