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개 답변
0
수락된 답변

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
전문가
답변함 8달 전
profile picture
전문가
검토됨 2달 전

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

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

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

관련 콘텐츠