CLI commands
The options for the following commands have not changed much, aside from their names and descriptions: create-rest-api, get-resources, create-resource, put-method-response, put-integration-response, and create-deployment. We also added request-parameters to put-method, to create the path param, as required.
We used the AWS integration type. We also specified the URI in the format required for AWS integrations: arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/<lambda arn>/invocations. The 2015-03-31 refers to the latest API version of the AWS Lambda service.
We defined the request-templates option of the put-integration sub-command to specify the mapping template for the JSON passed to Lambda from the API. Within ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access