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

Support container images! #157

Open
danwdart opened this issue Dec 3, 2020 · 5 comments
Open

Support container images! #157

danwdart opened this issue Dec 3, 2020 · 5 comments

Comments

@danwdart
Copy link

danwdart commented Dec 3, 2020

Now here's something that'll let us avoid the fpco/stack-build:lts-13.30 stuff, by using our own executables based on a smaller docker image.

https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/

@koterpillar
Copy link
Contributor

That's nice, makes some cleanup possible. We'll likely need serverless to support this first though.

@danwdart
Copy link
Author

danwdart commented Dec 6, 2020

I think there's an option where you upload it to ecs via aws-cli and then you specify without specifying the runtime or function name, and it runs the docker ENTRYPOINT.

@koterpillar
Copy link
Contributor

This seems to be it: serverless/serverless#8572. However, it expects the user to manage the ECS image themselves - if you just define a function it should, for example, leave no traces in your account after it's deleted. I hope some support for building the images is added to Serverless itself, then we can use that.

@danwdart
Copy link
Author

Wait, isn't the first code block in this article demonstrating how to do the automatic building? https://www.serverless.com/blog/container-support-for-lambda

@danwdart
Copy link
Author

Well yes, turns out that they do build now. https://github.com/serverless/serverless/blob/master/CHANGELOG.md#2200-2021-01-21 So I don't think this is blocked anymore.

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