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 réponse
0
Réponse acceptée

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
EXPERT
répondu il y a 8 mois
profile picture
EXPERT
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions