localstack / aws-sam-cli-local

Simple wrapper around AWS SAM CLI for use with LocalStack
Apache License 2.0
48 stars 8 forks source link

Add support to ssl #11

Closed janario closed 3 months ago

janario commented 10 months ago

We have a scenario where localstack will be exposed over an k8s ingress that enforces an ssl communication.

I know the doc says USE_SSL is deprecated, but I could not find a way with the other env vars without breaking compatibility. https://docs.localstack.cloud/references/configuration/#deprecated

With this I'll be able to use my external localstack:

export USE_SSL=true
export LOCALSTACK_HOSTNAME=<my-external-host>
export EDGE_PORT=443

samlocal deploy --guided
janario commented 3 months ago

It looks like with https://github.com/localstack/aws-sam-cli-local/commit/b26bc8ba1c57fc463b2193c00cf2363e010f2127 AWS_ENDPOINT_URL should do it 👍