Skip to content

Support running lambdas build from a docker image #6802

Open
@willm

Description

@willm

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions