Open ffMathy opened 1 year ago
thanks @ffMathy for raising this issue. I will try to reproduce this issue on github actions, mean while I have some questions, how you install SAM CLI in github actions, and what is the SAM CLI version you used in github actions.
I am installing the latest version of the SAM CLI via the SAM setup action 😊
@hawflau any progress on this?
@ffMathy
Have you fixed it yet?
I got the same error when excute sam local invoke --container-host host.docker.internal
inside docker container
Thanks
Description:
Whenever I run my tests in GitHub Actions (which runs them via the Ubuntu image), I get errors in my tests when they try to call my Lambda after starting the SAM CLI (also done by my tests).
Steps to reproduce:
The relevant part of my GitHub actions YML is here:
My
template.yaml
looks like this:Inside that container, I programmatically try to start the SAM CLI with the following options:
Then I make a request to the lambda.
This also happens if I just make an Ubuntu container myself and try to do it from there via CURL.
Observed result:
Expected result:
I expected the call to succeed.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:SAM CLI, version 1.77.0
eu-west-1