Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify deploying Python and TypeScript lambdas with dependencies #1290

Open
t0yv0 opened this issue May 24, 2024 · 1 comment
Open

Simplify deploying Python and TypeScript lambdas with dependencies #1290

t0yv0 opened this issue May 24, 2024 · 1 comment
Labels
kind/enhancement Improvements or new features theme/serverless

Comments

@t0yv0
Copy link
Member

t0yv0 commented May 24, 2024

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Consider simplifying deploying lambda function code with dependencies as this is non-trivial for beginners.

An existing solution in this space is the lambda-builders library. It has CLI with a JSON-RPC interface. Scope of this library: “given a folder containing function's source code, the selected build action, and path to an artifacts folder, this library will produce built artifacts in the artifacts folder.”

Possibly Pulumi could integrate with it directly to provide a component library where you could write:

const testLambda = new aws.lambda.Function("test_lambda", {
    code: new lambda_builders.Nodejs("../path/to/package.json"), // uses lambda-builders 
    name: "lambda_function_name",
    role: iamForLambda.arn,
    handler: "index.test",
    runtime: "nodejs18.x",
 });

Affected area/feature

@t0yv0 t0yv0 added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels May 24, 2024
@mjeffryes mjeffryes added theme/serverless and removed needs-triage Needs attention from the triage team labels May 24, 2024
@t0yv0
Copy link
Member Author

t0yv0 commented Jun 5, 2024

One interesting user story: https://levelup.gitconnected.com/my-journey-with-pulumi-and-the-serverless-framework-2b1398ee581a - there might be additional complications for CallbackFunction coming from closure serialization, but even if those were not fully addressed if we could guide users to a reasonable way to refactor CallbackFunctions into normal functions that could be helpful here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features theme/serverless
Projects
None yet
Development

No branches or pull requests

2 participants