Impossible to run start-api
and start-lambda
in parallel on Linux
#1827
Labels
area/local/start-api
sam local start-api command
area/local/start-lambda
sam local start-lambda command
Description
It seems to be impossible to run
local start-api
andlocal start-lambda
in parallel in--docker-network host
mode to achieve a scenario where we have an API Lambda chain-calling two other lambdas:API ---(A)---> Lambda 1 ---(B)---> Lambda 2 ---(C)---> Lambda 3
start-api
itselfstart-api
with--docker-network host
in order for it to see the localstart-lambda
on port 3001start-lambda
to be run with--docker-network host
, too but this fails withtcp :9001: bind: address already in use
Steps to reproduce
I use the following script to start my SAM environment:
Observed result
Expected result
Call (C) going through instead of the docker container not being spawned
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 0.43.0The text was updated successfully, but these errors were encountered: