Skip to content

bootstrap: Ubuntu in a private subnet cannot install the AWS CLI (awscli.amazonaws.com unreachable), so it now fails closed #1494

Closed

Description

@scttfrdmn

Summary

After #1490's PR, a Linux bootstrap on an image with no aws CLI (stock Ubuntu 22.04/24.04) installs the pinned AWS CLI v2 from https://awscli.amazonaws.com/awscli-exe-linux-<arch>-<version>.zip and fails closed when it cannot. awscli.amazonaws.com is CloudFront on the public internet, so an Ubuntu instance with no internet route cannot reach it: a private subnet with only VPC endpoints, which is exactly what --no-public-ip (v0.151.0) is for.

Evidence

  • pkg/launcher/bootstrap.go awsCLIInstallTemplate: the only source is awscli.amazonaws.com.
  • Before bootstrap: INSTANCE_ID is empty on Ubuntu (no ec2-metadata), so every tag read and the --command once-marker use an empty ID #1490 such an instance carried on with silently wrong defaults (hostname, job-array env, MOTD). After it, the bootstrap stops with a failed bootstrap completion record, so --on-complete fires and the workload never runs. TestBootstrapOnUbuntuReadsTheInstancesTags/ubuntu:24.04/no_aws_CLI_and_no_network reproduces this in a --network none container.
  • spored and the published body already come from the spawn-binaries-<region> buckets, which an S3 gateway endpoint reaches.

Suggested fix

Have the release workflow copy the two pinned zips, byte for byte, into spawn-binaries-<region>/awscli/<version>/. The bootstrap tries the regional bucket first and awscli.amazonaws.com second. The sha256 pin stays the trust anchor, so the mirror needs no signature of its own. Each release's copy needs a named deleter, like the other versioned objects.

Not verified on EC2: whether a --no-public-ip Ubuntu launch with only endpoints really fails today. The container test is the evidence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:launcharea:networkingenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions