Skip to content

sweep: carry --no-public-ip on a detached sweep (subnet check at --detach, LaunchSettings field) #1437

Closed

Description

@scttfrdmn

Follow-up to #1433.

--no-public-ip is refused on a detached sweep (detachedSettingsGuard, cmd/launch_sweep_detached_settings.go): the check that a member's subnet can reach what spored and the SSM agent need (VPC endpoints or a NAT route) runs at launch time with the caller's credentials (ec2:DescribeRouteTables, ec2:DescribeVpcEndpoints, ec2:DescribeSubnets), and the sweep orchestrator launches members later without it. --no-detach works today.

To carry it instead:

  • Run PreflightNoPublicIP per distinct (region, subnet) at --detach time, pinning each member's subnet (an AZ-only row would otherwise let EC2 pick an unchecked subnet).
  • Add no_public_ip to aws.LaunchSettings and apply it in Apply (applyNoPublicIP). The orchestrator's strict decoder (DecodeLaunchSettings, DisallowUnknownFields) means an orchestrator from an older release refuses such settings rather than launching with a public IP, so the version skew fails closed. The orchestrator then has to be redeployed from the same release.
  • Move NoPublicIP from refused to settings in detachedDispositions, and add it to TestDetachedMemberRunInstancesIsTheForegroundMembers's view.

Single-interface members only: multi-card EFA is refused on a detached sweep for other reasons (#1353).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:launcharea:networkingcomponent:spawnenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions