Skip to content

Rate limiting issues when pulling LWA image during container builds #595

@enomoto11

Description

@enomoto11

Issue Description

When trying to build a container image with Lambda Web Adapter (LWA), we're encountering rate limiting issues while pulling the base image from public ECR.

Current Behavior

When building a container with the following Dockerfile instruction:

COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.9.0 /lambda-adapter /opt/extensions/lambda-adapter

We get the following error:

Error: buildx failed with: ERROR: failed to solve: public.ecr.aws/awsguru/aws-lambda-adapter:0.9.0: failed to resolve source metadata for public.ecr.aws/awsguru/aws-lambda-adapter:0.9.0: failed to copy: httpReadSeeker: failed open: unexpected status code https://public.ecr.aws/v2/awsguru/aws-lambda-adapter/manifests/sha256:xxx: 429 Too Many Requests - Server message: toomanyrequests: Data limit exceeded

Expected Behavior

The image should be pulled successfully without hitting rate limits, especially since this is an official AWS component required for Lambda container deployments.

Questions

  1. Are there any recommended workarounds for this rate limiting issue?
  2. Is there an alternative way to include LWA in container builds that won't be affected by public ECR rate limits?
  3. Could the image be made available through alternative distribution channels that don't have such strict rate limits?

Environment

  • Building through GitHub Actions
  • Using Docker Buildx
  • Target platform: AWS Lambda

Impact

This issue affects CI/CD pipelines where containers need to be built frequently, as the rate limits can cause build failures and deployment interruptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions