You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default VPC, subnet and security-group ids are identical in every region #21
Real AWS never does this. VPC, subnet and security-group ids are globally unique; two regions' default VPCs have different ids. Any consumer that keys a resource by its id — the normal thing to do, since the id is the identifier — collapses three distinct resources into one.
Why it matters beyond cosmetics
It silently changes answers to questions that count resources across regions. Found while measuring a tool that snapshots an account: nine default subnets across three regions replayed as three, and a question asking how many subnets are empty came back 2 instead of 8. Nothing errored. The tool behaved correctly for ids that, on real AWS, could not have collided.
Derive the ids per region so they stay recognisable but unique — vpc-default-us-east-1, subnet-default-us-east-1-a — or hash the region into an AWS-shaped id. A helper (defaultVpcId(region)) would keep the four call sites in Ec2Service and the one in RdsService consistent.
Worth checking other services that seed defaults for the same pattern before fixing only EC2.
Originally filed upstream by mistake (floci-io#2097) and closed there — nothing goes upstream without a fix delivered alongside it.
Still current on main. Ec2Service lines 326, 341, 359, 1521, 1534, 2302, 4062 all hardcode vpc-default/subnet-default-*/sg-default. No per-region derivation yet.
Activity
lex00 commentedon Aug 18, 2026
Still current on main.
Ec2Servicelines 326, 341, 359, 1521, 1534, 2302, 4062 all hardcode vpc-default/subnet-default-*/sg-default. No per-region derivation yet.lex00 commentedon Aug 18, 2026
PR up: floci-io#2384
fix(ec2,rds): resolve default vpc/sg ids against persisted storage
test(compat): fetch RDS proxy subnet ids per signed region
fix(ec2): derive default vpc/subnet/sg ids per region
fix(ec2,rds): resolve default vpc/sg ids against persisted storage
test(compat): fetch RDS proxy subnet ids per signed region
test(cloudformation): use region-scoped subnet ids in the update-reco…
docs(ec2): spell out the #21 comment references
fix(ec2): derive default vpc/subnet/sg ids per region (#2384)
lex00 commentedon Aug 19, 2026
Merged upstream: floci-io#2384
chore(release): 2.0.0
fix(ec2): an interface VPC endpoint reports its network interfaces, a…