I want to deploy a docker image with my given Dockerfile that executes a program on the AWS Lambda cloud. I know it is possible for EC2 but I want to use AWS Lambda. Anyone have references or know if it is possible?
I was looking at the AWS Elastic Beanstalk as well that has docker capabilities, but it seems it is for web applications? My program that i'm trying to execute on the cloud is NOT a web application.
Image types You can use an AWS provided base image or an alternative base image, such as Alpine or Debian. Lambda supports any image that conforms to one of the following image manifest formats: Docker image manifest V2, schema 2 (used with Docker version 1.10 and newer)
Putting it to run: On your terminal, access the project's root folder where Dockerfile is. Then run the following command: docker build -t my-local-lambda . At this time, our service will be running and waiting for requests at the localhost:9000.
AWS Lambda's support for programming languages is limited to the languages for which it defines an integration API. Docker, meanwhile, can host any language or framework that can run on a Dockerized Linux or Windows operating system.
This has just been announced and it is now possible to run Docker inside of Lambda here is the link for the announcement:
https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With