pipecd
pipecd copied to clipboard
[Lambda] Support container image overrides configuration
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
-
The
function.yamlmanifest 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.