podman + sam locally stuck on "Testing application behaviour against authorizers..." step #7798
Labels
stage/needs-triage
Automatically applied to new issues and PRs, indicating they haven't been looked at.
Hello,
I have been trying to set up podman and sam to run a serverless app backend locally. When I use docker it works normally and my lambda functions mount, however when running podman sam gets stuck on this "Testing application behaviour..."step without proceeding to mount my functions. The same issue was observed by other members of our team.
My device: Apple M1 Pro
sam version: SAM CLI, version 1.132.0
podman: podman version 5.3.1
Docker cli: Docker version 27.3.1, build ce1223035a
Docker-compose: Docker Compose version 2.31.0
For context,
My aws config is set up correctly.
Podman is running and my containers are mapping to the right ports, I am able to ping them with curl.
I have also tried setting my DOCKER_HOST path as here
docker context create podman --docker "host=unix://$HOME.local/share/containers/podman/machine/podman.sock"
and then running my api after sam build has been successful:
SAM_CLI_CONTAINER_RUNTIME=podman sam local start-api --env-vars .env.json --parameter-overrides EnvironmentClientIdKey=local
However, sam remains hanging indefinitely not mounting functions
Running simply
sam local start-api
orsam local start-api --env-vars .env.json --parameter-overrides EnvironmentClientIdKey=local
also gets stuck without mounting lambda functions. 😢The text was updated successfully, but these errors were encountered: