Skip to content

Conversation

@14pixels
Copy link
Contributor

If the packaged .zip is quite big, it takes some time to upload it to AWS Lambda. If it takes longer than the default 120000ms it results in a connection timeout error. With this additional option, the timeout can be extended if needed.

README.md Outdated
-A, --packageDirectory [] Local package directory
-x, --excludeGlobs [] Add a space separated list of file(type)s to ignore (e.g. "*.json .env")
-D, --prebuiltDirectory [] Prebuilt directory
-T, --deployTimeout [120000] Deploy Timeout
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe mention that this is Upload to AWS: timeout in ms.

bin/node-lambda Outdated
.option('-x, --excludeGlobs [' + EXCLUDE_GLOBS + ']',
'Space-separated glob pattern(s) for additional exclude files (e.g. "event.json dotenv.sample")', EXCLUDE_GLOBS)
.option('-D, --prebuiltDirectory [' + PREBUILT_DIRECTORY + ']', 'Prebuilt directory', PREBUILT_DIRECTORY)
.option('-T, --deployTimeout [' + DEPLOY_TIMEOUT + ']', 'Deploy Timeout', DEPLOY_TIMEOUT)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above ^

region: 'us-east-1,us-west-2,eu-west-1',
eventFile: 'event.json',
contextFile: 'context.json',
deployTimeout: 120000,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was expecting a test to see if aws.config.httpOptions.timeout is correctly set

@DeviaVir DeviaVir merged commit 36c808f into motdotla:master May 10, 2017
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

Successfully merging this pull request may close these issues.

2 participants