Can you create API Gateway methods using a CloudFormation template without a Lambda proxy function?

0

A customer is currently using CloudFormation template to create API Gateway with the help of a Lambda function to create the methods and mappings. They’re currently looking for a way to do this without using a Lambda function as a proxy to build out the methods. Does CloudFormation support creating API Gateway methods without needing that extra Lambda function?

2 個答案
0
已接受的答案
已回答 6 年前
profile picture
專家
已審閱 5 個月前
0

Yes CloudFormation supports creating API Gateway. The first step for customer is familiarizing with different integration options available for an API.

In the previous answer post, swagger integration option was mentioned. Customers can start API development or prototyping by using swagger editor and other API development plugins.

https://swagger.io/ The next step could be to create API endpoint using CloudFormation. API Gateway version 2 is available and it provides lot of benefits. We could start without backend integration of Lambda and use integration type as MOCK.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integration.html

Once we have the skeleton ready we could create the backend in either AWS Lambda or HTTP endpoints of choice and wire them. This enables independent development of back end and testing based on API contract.

AWS
專家
已回答 2 年前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南