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

Is it possible to avoid the aws-sdk dependency? #45

Open
erezrokah opened this issue Sep 18, 2019 · 1 comment
Open

Is it possible to avoid the aws-sdk dependency? #45

erezrokah opened this issue Sep 18, 2019 · 1 comment

Comments

@erezrokah
Copy link

erezrokah commented Sep 18, 2019

First, thank you for this great library!

Currently the index.js exports the deploy function which in its turn requires the aws-sdk.
This creates quite a (unnecessarily) big package to deploy and confuses dependency resolution tools (like Webpack).

Is there a way to just use the handler factory without requiring the aws-sdk?

@erezrokah erezrokah changed the title Is it possible to avoid the aws-sdk dependency Is it possible to avoid the aws-sdk dependency? Sep 18, 2019
@ankon
Copy link

ankon commented Jan 15, 2021

The aws-sdk should be installed on a NodeJS Lambda runtime, so shouldn't you be able to just exclude it from getting bundled?
(https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants