serverless-haskell icon indicating copy to clipboard operation
serverless-haskell copied to clipboard

Support container images!

Open danwdart opened this issue 3 years ago • 5 comments

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/

danwdart avatar Dec 03 '20 23:12 danwdart

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

koterpillar avatar Dec 06 '20 03:12 koterpillar

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.

danwdart avatar Dec 06 '20 15:12 danwdart

This seems to be it: https://github.com/serverless/serverless/pull/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.

koterpillar avatar Dec 06 '20 22:12 koterpillar

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 avatar Apr 11 '21 01:04 danwdart

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.

danwdart avatar Apr 12 '21 09:04 danwdart