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
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠