Skip to content

Conversation

@armistcxy
Copy link

What this PR does:
Add Image Config option for overriding Lambda Function image configs (entrypoint, command, working directory)

Why we need it:
In order to achieve what issue #6352 has stated

Which issue(s) this PR fixes:
#6352

Fixes #

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

@armistcxy armistcxy requested a review from a team as a code owner January 2, 2026 08:16
@armistcxy
Copy link
Author

Usage example

apiVersion: pipecd.dev/v1beta1
kind: LambdaFunction
spec:
  name: TestImageConfig
  role: <role>
  image: <image>
  memory: 512
  timeout: 30
  imageConfig:
    command:
      - "CMD1"
    entryPoint:
      - "/app/entrypoint.sh"
    workingDirectory: /app

@armistcxy
Copy link
Author

The lambda function simply print out the current entrypoint, command, working directory.

I have already tested by adding this line

    command:
      - "CMD1"

Before:

{
  "statusCode": 200,
  "headers": {
    "Content-Type": "application/json"
  },
  "multiValueHeaders": null,
  "body": "{\"message\": \"Hello from Lambda!\", \"args\": \"./main\", \"working_dir\": \"/var/task\", \"path\": \"/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin\"}"
}

After:

{
  "statusCode": 200,
  "headers": {
    "Content-Type": "application/json"
  },
  "multiValueHeaders": null,
  "body": "{\"message\": \"Hello from Lambda!\", \"args\": \"./main, CMD1\", \"working_dir\": \"/var/task\", \"path\": \"/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin\"}"
}

@armistcxy armistcxy force-pushed the feature/lambda-image-config branch from e459051 to aa23326 Compare January 2, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant