aws / aws/aws-sam-cli

Support running lambdas build from a docker image

Open
#6,802 2 comments 2 reactions 0 assignees View on GitHub
area/local/invoke area/terraform type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.