You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create an API which has routes to invoke Lambda functions but also routes to send data to a Kinesis Data Stream. I am using the AWS::Serverless::Function resource with an Api EventSource to add the route to the AWS::Serverless::Api resource that is also defined in my template. The AWS::Serverless::Api resource also has the DefinitionBody property defined to give a Swagger definition to define the routes for sending requests to Kinesis. This definition is based on the one from the AWS tutorial for sending data from API Gateway to Kinesis.
The deployed API only has the routes defined in the DefinitionBody and none of the routes defined in the Lambda functions.
Steps to reproduce:
Add definition from here to DefinitionBody property of AWS::Serverless:Api resource
Add EventSource of type Api to AWS::Serverless::Function resource
Add RestApiId property to EventSource which references AWS::Serverless:Api resource
Observed result:
The EventSource is not added to the Swagger definition.
Expected result:
I expect both the Kinesis routes and the Lambda function routes to all be added to the API Gateway.
The AWS::Serverless:Api document suggests that SAM will add to the definition body before passing the template to CloudFormation
If certain properties are provided, content may be inserted or modified into the DefinitionBody before being passed to CloudFormation. Properties include Auth, BinaryMediaTypes, Cors, GatewayResponses, Models, and an EventSource of type Api on for a corresponding AWS::Serverless::Function
The text was updated successfully, but these errors were encountered:
Description:
I am trying to create an API which has routes to invoke Lambda functions but also routes to send data to a Kinesis Data Stream. I am using the AWS::Serverless::Function resource with an Api EventSource to add the route to the AWS::Serverless::Api resource that is also defined in my template. The AWS::Serverless::Api resource also has the
DefinitionBody
property defined to give a Swagger definition to define the routes for sending requests to Kinesis. This definition is based on the one from the AWS tutorial for sending data from API Gateway to Kinesis.The deployed API only has the routes defined in the DefinitionBody and none of the routes defined in the Lambda functions.
Steps to reproduce:
Observed result:
The EventSource is not added to the Swagger definition.
Expected result:
I expect both the Kinesis routes and the Lambda function routes to all be added to the API Gateway.
The AWS::Serverless:Api document suggests that SAM will add to the definition body before passing the template to CloudFormation
The text was updated successfully, but these errors were encountered: