Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not an issue but a question. #1

Open
sanchezz985 opened this issue Aug 17, 2021 · 1 comment
Open

Not an issue but a question. #1

sanchezz985 opened this issue Aug 17, 2021 · 1 comment

Comments

@sanchezz985
Copy link

Hi,

I'm here because of your recent answer in (aws/aws-sam-cli#510 (comment)).

I ran this project with virtualbox and vagrant as you suggest and it worked fine, but when I try to run the same

lambdaA -> lambdaB

without these tools it fails, as you mentioned maybe it's a network issue and this brings me to my question.

Do you know if it's possible to test the conectivity between lambdaA and lambdaB containers ?

Both lambdaA and lambdaB are connecting to bridge network and I used this command docker network inspect -f '{{range .Containers}}{{.Name}} {{end}}' bridge to validate.

image

And although both containers are in same network can't communicate, I added this piece of code to validate the communication in the vagrant environment and my own.

image

in my environment I got

image

and in vagrant environment I got a 404 error which it's fine.

  • Differences I found with my environment:

image

I also notice that everytime I start the project, new containers are created and previous containers persist, is this ok ?

image

sorry for the inconvenience, any help will be appreciated 😅 .

@jb3rndt
Copy link
Owner

jb3rndt commented Aug 24, 2021

No problem, I still hope that we can somehow figure out what is going wrong here.

To answer your first question: No, sadly I dont know how to test that properly. For me it was just manual trial and error...

I was trying to reproduce your issue outside of the vagrant environment but had no success. Installing the same versions didnt break it for me either. I tried it with WSL2 on Windows but maybe I should just install a real Ubuntu VM for further testing.
Maybe you can share your environment in more detail? For example, I am not even sure what this (base) at the beginning of each line in your shell stands for 😅. (If it is a virtual environment, its new to me that you can give them other names or something like that.)

Regarding the persisting containers, this should be no problem. It is a byproduct from running the two sam local commands in parallel. I suspect that only one container gets correctly removed when you quit the start-lambdas with CTRL+C because only one process recognizes this event.

Looking forward to some news :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants