Skip to content

The resource AWS::Lambda::Function 'xxx4FF3C67E' has specified S3 location for Code. It will not be built and SAM CLI does not support invoking it locally. #2802

Closed
@lidong-jimi

Description

Description:

The resource AWS::Lambda::Function 'xxx4FF3C67E' has specified S3 location for Code. It will not be built and SAM CLI does not support invoking it locally.

Steps to reproduce:

When run **sam local start-api**.
output:

The resource AWS::Lambda::Function 'xxx4FF3C67E' has specified S3 location for Code. It will not be built and SAM CLI does not support invoking it locally.
The resource AWS::Lambda::Function 'xxxF73A144E' has specified S3 location for Code. It will not be built and SAM CLI does not support invoking it locally.
The resource AWS::Lambda::Function 'xxx78EA90C0' has specified S3 location for Code. It will not be built and SAM CLI does not support invoking it locally.
The resource AWS::Lambda::Function 'xxx2BE3C117' has specified S3 location for Code. It will not be built and SAM CLI does not support invoking it locally.
The resource AWS::Lambda::Function 'xxx7CB472B4' has specified S3 location for Code. It will not be built and SAM CLI does not support invoking it locally.
Mounting None at http://127.0.0.1:3000/xxx [OPTIONS]
Mounting xxx4FF3C67E at http://127.0.0.1:3000/xxx [POST]
Mounting None at http://127.0.0.1:3000/xxx [OPTIONS]
Mounting xxxF73A144E at http://127.0.0.1:3000/xxx [POST]
Mounting None at http://127.0.0.1:3000/xxx [OPTIONS]
Mounting xxx78EA90C0 at http://127.0.0.1:3000/xxx [POST]
Mounting None at http://127.0.0.1:3000/xxx [OPTIONS]
Mounting xxx2BE3C117 at http://127.0.0.1:3000/xxx [POST]
Mounting None at http://127.0.0.1:3000/xxx[OPTIONS]
Mounting xxx7CB472B4 at http://127.0.0.1:3000/xxx[POST]
You can now browse to the above endpoints to invoke your functions. You do not need to restart/reload SAM CLI while working on your functions, changes will be reflected instantly/automatically. You only need to restart SAM CLI if you update your AWS SAM template

Observed result:

Expected result:

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: MACOS Catalina 10.15.6
  2. sam --version: SAM CLI, version 1.22.0
  3. AWS region:us-west-2

Add --debug flag to command you are running

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