Open jdkpdxjdk opened 8 months ago
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.
Hi @komarkovich ! A short update: We have a potential solution thought out, and we plan to implement it, but I unfortunately cannot give you an ETA for this yet. Thanks for reporting this issue!
Hey @dfangl,
Any chance you have an update for us?
Hi, also for me is important this issue, there is a solution?
Also waiting on a solution for this.
When implementing a Lambda that uses the AWS Parameters and Secrets Lambda Extension, secrets or parameters are fetched from SecretsManager by making a request to localhost from within the Lambda.
The extension is provided to the Lambda via a Lambda layer released by AWS. Currently, when executing the
requests.get()
from within a Localstack Lambda, the Lambda container attempts to connect to the actual AWS endpoint (assuming it's redirected by some type of webservice within the layer itself) which fails due to a certificate validation exception:As a workaround, I was hoping I could provide a local webservice that could listen over the default 2773 port and fetch the secrets from Localstack using
awslocal
commands on the container host but I've been unable to figure out how to redirect traffic to http://localhost:2773 from within the public.ecr.aws/lambda/python:3.9 Lambda container to the container host.Built-in support for AWS Parameters and Secrets Lambda Extension would be great, but advice on a workaround would also be greatly appreciated.
Thank you!