Skip to content

Comments

docs: modernize python secrets management using aws lambda extension#2015

Open
Angelmendiratta wants to merge 1 commit intoOWASP:masterfrom
Angelmendiratta:update/serverless-secrets-python
Open

docs: modernize python secrets management using aws lambda extension#2015
Angelmendiratta wants to merge 1 commit intoOWASP:masterfrom
Angelmendiratta:update/serverless-secrets-python

Conversation

@Angelmendiratta
Copy link

Description

This PR updates the Python secrets management example in the Serverless/FaaS guide to reflect modern AWS best practices.

Key Improvements:

  • Transitioned from boto3 to AWS Lambda Extension: Moved away from direct SDK calls to the localized HTTP endpoint (localhost:2773).
  • Performance & Cost: The new implementation leverages managed caching, reducing latency and Secrets Manager API costs.
  • Zero Dependencies: Used urllib3 (native to the environment) to keep function packages lightweight.

Related Issue

Closes #2011

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UPDATE] Modernize Python Secrets Retrieval in Serverless Cheat Sheet using AWS Lambda Extension

1 participant