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

Allow warmupFunction and log detachments #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jasonmc86
Copy link

Adds:

  • ability to also have warmup function ENI's deleted.
  • logs detachments for better logging.

index.js Outdated
@@ -107,9 +116,10 @@ Object.defineProperties(
return new Ec2({ region: this.serverless.service.provider.region });
}),
functionNames: d(function () {
const warmupFunction = this.serverless.service.custom.warmup ? [this.serverless.service.custom.warmup.name] : [];
Copy link
Owner

Choose a reason for hiding this comment

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

custom may not be set, and actually CI fails on that.

Additional question do custom.warmup comes from some plugin?

I think for such custom extra lambdas (from whatever plugins) might be good to propose special option, from which we may read extra names (?)

Copy link
Author

Choose a reason for hiding this comment

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

That's a better idea let us do that instead 👍

@jasonmc86
Copy link
Author

It's such a weird error mesage on test.

@medikoo
Copy link
Owner

medikoo commented Aug 2, 2018

It's such a weird error mesage on test.

It's because test doesn't expose some errors as it should. I've fixed it in master, just merge and after npm test you'll see actual error exposed.

I've additionally updated dependencies, and new lint rule prompted me to split cleanup method, which I followed, so when merging you may approach conflict (sorry about that), but it's just that some logic has been secluded to outer method, nothing more.

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

Successfully merging this pull request may close these issues.

None yet

2 participants