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 Antworten
0
Akzeptierte Antwort
beantwortet vor 6 Jahren
profile picture
EXPERTE
überprüft vor 5 Monaten
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
EXPERTE
beantwortet vor 2 Jahren
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen