Is it possible to replicate AWS API Gateway in my local development setup?

0

I am trying to use AWS API Gateway in my local development but I only found a document which says how to api gateway locally using SAM CLI. But it did not mention anything about how to configure other services such S3 or EC2 instance to that API Gateway, Is SAM CLI is the only option to replicate the API Gateway in local environment or is there any other ways to replicate the same. Kindly advise.

1 Antwort
0
Akzeptierte Antwort

Hi,

Please, have a look at this post re. capabilities offered by SAM: https://programmingpercy.tech/blog/develop-and-debug-sam/ Very detailled and complete article with full code samples.

It will explain you what you can do locally with SAM: develop Lambdas called via ApiGateway and using DDB to store data.

Other services like those you mention do not have an AWS-provided local emulation but you can always develop on your local machine code that calls S3 or EC2 services in your AWS account to fully test your development.

In this form of development, you will be able to iterate fast (i.e. locally on your machine from your preferred IDE ) on what changes most (code & data structure) while interacting with the other services remotely to have end-to-end dev and testing on your laptop

Best,

Didier

profile pictureAWS
EXPERTE
beantwortet vor 8 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten

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