Skip to content

[Lambda] Support container image overrides configuration #6352

@cuongvd23

Description

@cuongvd23

What would you like to be added:

  • Enable override container image configuration when deploying AWS Lambda function with Docker image.

  • The Lambda create function UI with override config

Image
  • The function.yaml manifest with container image overrides configuration as follows
apiVersion: pipecd.dev/v1beta1
kind: LambdaFunction
spec:
  name: SimpleCanaryImageFunction
  role: arn:aws:iam::124:role/lambda-role
  image: ecr.ap-northeast-1.amazonaws.com/lambda-image:v0.0.2
  imageConfig:
      entrypoint: /bin/sh
      command: ./server lambda
      workingDirectory: server
  memory: 128
  timeout: 5
  tags:
    app: canary-image

Why is this needed:

  • Users can override the entrypoint/command when deploying a Lambda function with a non-AWS base image.
  • Flexibility in reusing the same image supports multiple CLI commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions