Skip to content

Multi-card --efa always takes an Elastic IP although spawn is SSM-first: allow private-only launches (EIP quota caps EFA fleet size) #1433

Closed

Description

@scttfrdmn

Request

spawn launch --efa on a multi-card type always gives the instance a public IP, by allocating and associating an Elastic IP; EC2 can't auto-assign one with more than one interface. Please add an option to skip that and launch with private IPs only, e.g. --no-public-ip.

Why

For scttfrdmn/adit, the Elastic IP limit, not capacity planning, caps fleet size.

  • Each two-rail c8gn.48xlarge proxy and each p5en client takes one Elastic IP. The default limit is 5–10 per region.
  • So a client plus 8 two-rail proxies fits only in us-east-1, and there it competes for scarce c8gn capacity in one AZ.
  • Nothing in the workload needs the public IP:
    • EFA traffic, the proxies' control HTTP and S3 all run over private IPs, with S3 through the VPC's gateway endpoint;
    • spawn connect uses SSM.

What it would take

  • With the option set, skip AllocateAddress/AssociateAddress and the Elastic IP release.
  • Preflight should warn, or refuse, when the subnet's VPC lacks what a private instance needs:
    • an S3 gateway endpoint (the bootstrap fetches from S3);
    • SSM endpoints (ssm, ssmmessages, ec2messages), or a NAT;
    • whatever spored calls to enforce TTL and cost-limit, e.g. EC2, STS, DynamoDB or a Lambda URL. Its own endpoint list would help, so users can check.
  • Dry-run should show Public IP: none (private only).

Context

In us-east-1, our default VPC already has gateway endpoints for S3 and DynamoDB, and interface endpoints for ssm, ssmmessages, ec2messages, ec2, sts, logs and monitoring. We would test there first, on one c8gn.48xlarge.

Activity

  1. scttfrdmn commented on Oct 30, 2026

    @scttfrdmn
    ContributorAuthor

    The scenario this blocks

    spawn is SSM-first: spawn connect and spored's control both go through SSM, so they don't need a public address. Yet a multi-card --efa launch always allocates and associates an Elastic IP. The only reason is that EC2 won't auto-assign a public IPv4 to an instance with more than one interface. For an SSM-first tool, that turns a per-region Elastic IP quota into a fleet-size limit that has nothing to do with what the workload needs.

    Concrete case (scttfrdmn/adit, 2026-10-29): the fleet is one p5en.48xlarge client plus 8 c8gn.48xlarge proxies, every box with both EFA cards (--efa, every interface).

    • That needs 9 Elastic IPs in one region. Our accounts have 5–10 per region, shared with other work, so only us-east-1 fits.
    • us-east-1 has repeatedly lacked capacity for 8 c8gn.48xlarge in the client's AZ: 7, 7, then 2 of 8 placed.
    • The latest attempt placed the client and 2 proxies, then had to retire them: about $34 of instance time and no result.
    • us-west-2 and us-east-2 have the instance types but not the Elastic IP headroom. us-west-2 has 8 free, us-east-2 has 4.

    Nothing in the workload uses the public address:

    • EFA traffic between the boxes uses private IPs in one subnet and one self-referencing security group.
    • The proxies' control HTTP is private, to the client's private IP.
    • S3 goes through the VPC's S3 gateway endpoint.
    • Operators use spawn connect (SSM).

    Ask

    1. An option to launch multi-card EFA instances with private IPs only, e.g. --no-public-ip or --public-ip none: no AllocateAddress/AssociateAddress, and no Elastic IP to release. This is the body of this issue.

    2. Maybe make it the default for multi-card EFA, or fall back to it when the region has no Elastic IP headroom (the Multi-interface EFA launch fails late at AllocateAddress when the region's Elastic IP limit is reached; preflight could catch it #1233 preflight already knows), instead of failing or making the caller drop to --efa-interfaces 1.

    3. A preflight check that the subnet's VPC can serve a private-only instance:

      • an S3 gateway endpoint, or NAT, for bootstrap fetches;
      • SSM endpoints (ssm, ssmmessages, ec2messages), or NAT, for spawn connect;
      • whatever spored calls to enforce --ttl and --cost-limit (EC2, STS, DynamoDB, CloudWatch, any spawn Lambda or DNS URL).

      If spored can't reach those, its TTL and cost-limit kills don't run, so the launch should refuse rather than come up without its safety net. A published list of spored's required endpoints would help users check their VPCs.

    What we have to test with

    • us-east-1 default VPC: gateway endpoints for S3 and DynamoDB; interface endpoints for ssm, ssmmessages, ec2messages, ec2, sts, logs and monitoring.
    • us-west-2 default VPC: none of those.

    We can test a build on one c8gn.48xlarge in us-east-1. The checks would be that spawn connect works, that S3 bootstrap works, and that spored's TTL and cost-limit fire, all with no public IP.

  2. changed the title [-]--efa multi-card launches: option for private IPs only (no Elastic IP)[/-] [+]Multi-card --efa always takes an Elastic IP although spawn is SSM-first: allow private-only launches (EIP quota caps EFA fleet size)[/+] on Oct 30, 2026
  3. added
    enhancement
    area:networking
    on Oct 30, 2026
  4. added this to the v0.151.0 milestone on Oct 30, 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:networkingcomponent:spawnenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions