serverless-ide-vscode icon indicating copy to clipboard operation
serverless-ide-vscode copied to clipboard

Functions with ECR Docker images incorrectly annotated as having missing properties in serverless.yml

Open SebVen opened this issue 3 years ago • 0 comments

Lambda functions from Docker containers (created from Docker images uploaded to AWS ECR) do not require a runtime or handler to be assigned. Yet, Serverless IDE appears to raise an error when the following code is added to serverless.yml:

functions:
  my-function:
    image:
      name: my-image

The my-function property gets highlighted as having [Serverless IDE] Missing property "handler". and [Serverless IDE] Missing property "runtime".

Neither of these are required for the Lambda function to work using Docker containers.

This appears to be a bug.

SebVen avatar Feb 23 '22 16:02 SebVen