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 running lambdas build from a docker image #6802

Open
willm opened this issue Mar 9, 2024 · 1 comment
Open

Support running lambdas build from a docker image #6802

willm opened this issue Mar 9, 2024 · 1 comment
Labels
area/local/invoke sam local invoke command area/terraform terraform support issue type/feature Feature request

Comments

@willm
Copy link

willm commented Mar 9, 2024

I was very excited to see some cross compatibility between sam and terraform. However when I tried to run my lambda locally with sam, I was greeted with this message.

sam local invoke --hook-name terraform
Skipped prepare hook. Current application is already prepared.
The resource AWS::Lambda::Function 'AwsLambdaFunctionXXLambda234C177D' has specified ECR registry image for Code. It will not be built and SAM CLI does not support invoking it locally.
Error: You must provide a function logical ID when there are more than one functions in your template. Possible options in your template: []

I'm using lambda to run an ML model so I need to use the docker functionality. The infrastructure team uses terraform. It would be great to be able to run serverless applications with sam that are built from a docker image.

@hnnasit
Copy link
Contributor

hnnasit commented Mar 12, 2024

Hi @willm thanks for the feature request, I will bring it up with the team.

@hnnasit hnnasit added type/feature Feature request area/local/invoke sam local invoke command area/terraform terraform support issue labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/local/invoke sam local invoke command area/terraform terraform support issue type/feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants