Skip to content

feat: Option to execute only UpdateFunctionCode #497

Description

@kodai305

Description

I would like to request a feature to add an option that only executes UpdateFunctionCode and skips UpdateFunctionConfiguration when deploying Lambda functions.

Use Case

When using Infrastructure as Code tools like Terraform to manage all Lambda configuration settings, we want to:

Use Terraform for managing all Lambda configuration
Use lambroll only for code deployment

Currently, to achieve this workflow, we need to either:

Use --ignore to exclude all configuration parameters, which is cumbersome as we need to list every field, or
Run init before each deployment to load the latest configuration

Having a dedicated option to skip UpdateFunctionConfiguration would simplify this workflow.

Activity

  1. fujiwara commented on Apr 19, 2025

    @fujiwara
    Owner

    @kodai305 Thank you for the request!
    I'm working on #499, this PR adds the --skip-configuration option.

    Would you try the branch to see if it works fine?

  2. kodai305 commented on Apr 20, 2025

    @kodai305
    Author

    @fujiwara
    I've tested the branch locally and can confirm that lambroll deploy --skip-configuration works as expected. I specifically verified this by changing the memory size in function.json and confirming that the change was not applied during deployment.

    Looking forward to the release!

  3. fujiwara commented on Apr 25, 2025

    @fujiwara
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions