Skip to content

DOC-372: Document AWS_CA_BUNDLE fix for python TEI in DNS mode - #901

Open
quetzalliwrites wants to merge 1 commit into
mainfrom
doc-372-doc-fixlambda-only-set-empty-aws_ca_bundle-for-python-tei-in
Open

DOC-372: Document AWS_CA_BUNDLE fix for python TEI in DNS mode#901
quetzalliwrites wants to merge 1 commit into
mainfrom
doc-372-doc-fixlambda-only-set-empty-aws_ca_bundle-for-python-tei-in

Conversation

@quetzalliwrites

Copy link
Copy Markdown
Collaborator

Summary

Documents the fix from localstack-pro#8065: LocalStack now only sets an empty AWS_CA_BUNDLE for python Lambda Transparent Endpoint Injection when DNS-based injection (LAMBDA_DISABLE_AWS_ENDPOINT_URL=1) is active, rather than unconditionally. This unblocks python Lambdas that bundle botocore >= 1.43.54, which added validation rejecting an empty AWS_CA_BUNDLE with InvalidConfigError.

Added a note to the "Self-signed certificates" section of the Transparent Endpoint Injection doc explaining:

  • The default (AWS_ENDPOINT_URL active) mode now works out of the box with a bundled current botocore, since it reaches LocalStack over plain HTTP and needs no cert handling.
  • DNS mode still disables verification via an empty AWS_CA_BUNDLE, which is incompatible with a bundled current botocore — use DISABLE_TRANSPARENT_ENDPOINT_INJECTION=1 as the workaround in that case.

Linear ticket

https://linear.app/localstack/issue/DOC-372/doc-fixlambda-only-set-empty-aws-ca-bundle-for-python-tei-in-dns-mode

Test plan

  • npx astro build completes successfully (404 pages built)
  • Link validator confirms all internal links are valid
Note that python Lambdas bundling botocore >= 1.43.54 now work by
default under Transparent Endpoint Injection, since LocalStack only
sets an empty AWS_CA_BUNDLE in DNS-based injection mode
(LAMBDA_DISABLE_AWS_ENDPOINT_URL=1) rather than unconditionally.
Document the DISABLE_TRANSPARENT_ENDPOINT_INJECTION=1 workaround for
users who need DNS mode with a bundled current botocore.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying localstack-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b6a6a79
Status: ✅  Deploy successful!
Preview URL: https://ad0a3bd8.localstack-docs.pages.dev
Branch Preview URL: https://doc-372-doc-fixlambda-only-s.localstack-docs.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant