Files
floci/docs
Allen Sanborn 708dc32fa1 feat(ec2): support egress-only internet gateways (#5822)
* feat(ec2): support egress-only internet gateways

CreateEgressOnlyInternetGateway fell through to UnsupportedOperation, so
aws_egress_only_internet_gateway could not be created, and
DescribeEgressOnlyInternetGateways always answered an empty set.

Egress-only gateways are now stored (ec2-egress-only-internet-gateways.json,
through StorageFactory) and created attached to an existing VPC, with
TagSpecification and CreateTags applied. Describe filters by ID,
egress-only-internet-gateway-id, attachment.vpc-id, attachment.state and
tags; Delete returns returnCode. DeleteVpc reports DependencyViolation
while one is attached. The three actions are added to EC2 query routing,
which removes DescribeEgressOnlyInternetGateways from the known gaps.

* fix(ec2): settle Qodo findings on egress-only internet gateways

- CreateEgressOnlyInternetGateway validates TagSpecification tags before it
  creates anything, so an aws: key no longer leaves an attached gateway behind.
  Tags are applied with the gateway, under the topology lock.
- A ClientToken replay compares the creation tags as well as VpcId: changed tags
  fail with IdempotentParameterMismatch, and a matching replay returns the
  gateway unchanged instead of re-tagging it.
- DescribeEgressOnlyInternetGateways honours MaxResults (5 to 255 in the EC2
  model) and NextToken, ordered by ID, using the service's existing token codec.
- DeleteEgressOnlyInternetGateway takes the resource lock createSystemTags
  takes, and leaves routes that targeted the gateway in place as blackhole, the
  state AWS documents for a route whose target is gone.

* fix(ec2): DeleteEgressOnlyInternetGateway without an id is MissingParameter

The EC2 model marks EgressOnlyInternetGatewayId required. A request
without it answered InvalidGatewayID.NotFound for 'null'; it now gets
the same MissingParameter the other EC2 handlers return. An unknown id
still fails with InvalidGatewayID.NotFound.
2026-10-16 22:25:09 -04:00
..
2026-03-15 17:43:56 -05:00