Skip to content

Allow to install this extension easily to Docker Lambda #16

Closed
@tmokmss

Description

@tmokmss

In README, there is only instructions for zip Lambda. It would be great if we could install this extension to Docker Lambda easily.

IMO Lambda Web Adapter has great usability on Docker Lambda. Their usage is like the following:

# Dockerfile for Lambda function
FROM public.ecr.aws/docker/library/node:20-slim
# Just add this line to install the extension
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.3 /lambda-adapter /opt/extensions/lambda-adapter
ENV PORT=7000
WORKDIR "/var/task"
ADD src/package.json /var/task/package.json
ADD src/package-lock.json /var/task/package-lock.json
RUN npm install --omit=dev
ADD src/ /var/task
CMD ["node", "index.js"]

The existing extension also requires some work to use it in Docker Lambda, so this can be a differentiator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions