Skip to content

VPC route table simulation #293

Closed

Description

@scttfrdmn

Summary

Add route table CRUD and association with subnets. Currently VPCs and subnets exist but have no routing configuration.

Proposed implementation

Operations

  • CreateRouteTable, DescribeRouteTables, DeleteRouteTable
  • CreateRoute, ReplaceRoute, DeleteRoute
  • AssociateRouteTable, DisassociateRouteTable, ReplaceRouteTableAssociation

Behavior

  • Default VPC gets a main route table with 0.0.0.0/0 → igw on creation
  • Custom VPCs get a main route table with only the local route
  • Subnets without explicit association use the VPC's main route table
  • Route targets: igw-* (internet gateway), nat-* (NAT gateway), local, eni-*

State

  • rtb:{acct}/{region}/{rtbId} — route table with routes array
  • rtb_assoc:{acct}/{region}/{assocId} — subnet→route table mapping

Acceptance criteria

  • Route table CRUD operations
  • Route CRUD within a route table
  • Subnet ↔ route table association
  • Default VPC gets main route table with IGW route
  • DescribeRouteTables filters by VPC, subnet, route table ID
  • Tests: create VPC → create route table → add route → associate with subnet

Activity

  1. added this to the v0.63.0 milestone on Apr 10, 2026
  2. added
    type: feature
    on Apr 10, 2026
  3. scttfrdmn commented on May 30, 2026

    @scttfrdmn
    OwnerAuthor

    Partially shipped in v0.63.0 — keeping open for the remaining acceptance criteria.

    Done (ec2_plugin.go):

    • Route table create/describe/delete (CreateRouteTable, DescribeRouteTables, DeleteRouteTable)
    • Route create/delete (CreateRoute, DeleteRoute)
    • Subnet ↔ route table associate/disassociate (AssociateRouteTable, DisassociateRouteTable)
    • Default/custom VPC gets a main route table with local route (+IGW route), rtb: / association state keys
    • DescribeRouteTables filters by route-table-id

    Still outstanding:

    • ReplaceRoute and ReplaceRouteTableAssociation operations (listed in the design; not in the op switch at ec2_plugin.go:108-120)
    • DescribeRouteTables filtering by vpc-id and association.subnet-id — currently only route-table-id is honored; the Filter.N params are ignored
    • Confirm default-VPC main route table carries the 0.0.0.0/0 → igw route (design calls for it; only the local route is verified)

    The release commit title referenced #293 but the feature is incomplete, so this stays open.

  4. scttfrdmn commented on Jun 2, 2026

    @scttfrdmn
    OwnerAuthor

    Remaining acceptance criteria implemented in #301 (branch feat/issues-290-293).

    #293 — see the PR for the full breakdown. For #290 specifically: MODIFIED is implemented and tested end-to-end for S3 VersioningConfiguration; the other drift-checkable types stay existence-only because their deploy paths don't persist template-comparable properties (documented honestly in the PR + cfnDriftComparators doc comment). Will close on merge via the PR's Closes #293 keyword.

  5. added a commit that references this issue on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: vpctype: feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions