Running local api for nested serverless application locally
See original GitHub issueI have a serverless SAM-based service that has multiple Application
resource referencing local templates, but running the template locally (with sam local start-api
) doesn’t seem to recognize the nested applications.
Is it possible to run all of the referenced Application
s as a single service locally?
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Running API Gateway locally - AWS Documentation
Start a local instance of API Gateway using the sam local start-api AWS SAM CLI command.
Read more >AWS SAM Accelerate and nested stacks - Serverless Land
See how AWS SAM Accelerate speeds up deployment from your local ... live office hours to learn about building serverless applications.
Read more >Using Serverless Framework with AWS – Best Practices
This plugin emulates AWS Lambda and API Gateway on your local machine. ... these two plugins, you can setup most of your serverless...
Read more >Plugin Repository - Serverless Framework
Emulate AWS λ and API Gateway locally when developing your ... Serverless Dynamodb Local Plugin - Allows to run dynamodb locally for serverless....
Read more >AWS SAM Template - Local Testing - Stack Overflow
The function has been created before the API Gateway. You can use DependsOn parameter to create the API before the method.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Facing the same problem here, I’ll try to add more context to the problem.
My team has multiple
template.yml
each template represent an API that we use, see the graph bellow:So
contracts
andsimulations
will have their owntemplate.yml
that will contain all lambdas declarations and events. Then ontemplate.yml
ofsrc
we declare this API’s as nested applications, like this:What we want is that when we start a local api with
sam local start-api
onsrc
folder their nested applications will be started too with their API’s. Currently, an error is returned because we do not have any http event on this template.yml (this events are on the nested applications).This will be an awesome feature to
sam
thanks for this CLI btw.@gerhardberger Do you find any workaround for this?
Hi, we also would like to have a feature like that: right now, during development, we use to run local start-api over the single nested stacks, but it doesn’t scale a lot…