Aws-sam-cli: Support for AWS::Lambda::Function and AWS::ApiGateway::RestApi

Created on 11 Aug 2017  路  8Comments  路  Source: aws/aws-sam-cli

When running aws-sam-local with a template file that uses AWS::Lambda::Function and AWS::ApiGateway::RestApi I see that aws-sam-local complains about missing Serverless functions and related API events. Can aws-sam-local work with AWS::Lambda::Function and AWS::ApiGateway::RestApi ?

typfeature

Most helpful comment

We're looking to add it, but don't have a timeline for it yet.

We need to complete some work on the CloudFormation/SAM parser that we use first, then work on swagger support will be starting.

All 8 comments

No, it works specifically with SAM resources - AWS::Serverless::Api/Function. We could expand in future to support other resources too, but that would require us to support creating API proxy by reading the Swagger file and support other API Gateway integrations as asked in #16

Do you use inline Swagger or external Swagger?

I'm using inline Swagger

Will there be support for inline Swagger with AWS::Serverless::Api in the near future?

We're looking to add it, but don't have a timeline for it yet.

We need to complete some work on the CloudFormation/SAM parser that we use first, then work on swagger support will be starting.

+1 for requesting this feature. I followed AWS Lambda tutorial to create my first lambda service and then got stuck with using sam local to test it because of this issue.

Is there an update on the timeline for adding support for inline Swagger with AWS::Serverless::Api?

We've just merged #222 that adds support for Swagger as part of the Serverless Api resource.

Just bundled up v0.2.3 and released it to NPM.
You can upgrade with npm update -g aws-sam-local.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Inkromind picture Inkromind  路  4Comments

zhangzhx picture zhangzhx  路  3Comments

goldenbearkin picture goldenbearkin  路  3Comments

rhlsthrm picture rhlsthrm  路  4Comments

Caian picture Caian  路  3Comments