aws / aws/aws-sam-cli

Bug: Cant Connect to a database behind a SSL tunnel in my machine using `sam local start-api`

Open
#8,008 2 comments 1 reaction 0 assignees View on GitHub
stage/needs-triage
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

# Description
I'm trying to connect to a external database that is outside an SSL tunnel with a .pem file. The tunnel is in my local machine in the port (for example 27001) . The docker container cant acces to the port of my machine. I tried to set the container in the host network using host.docker.internal but it doesnt work... I'm using Manjaro Linux.

## Steps to reproduce

I tried to:
- Create a custom dockerfile with the port binding
- Bind the host network to the sam local start-api command and use host.docker.internal

Im Using:

Os: Manjaro linux
sam version: 1.127.0

None of these works

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.