QuestionQ93

VerifiedDeployment

A developer is writing an application in AWS Lambda. To simplify testing and deployments, the developer needs the database connection string to be easily changed without modifying the Lambda code.

How can this requirement be met?

Explanation

AWS Secrets Manager is designed to store configuration values such as database connection strings and credentials outside of application code, letting a Lambda function retrieve the current value at runtime via the API so the value can change without any code or deployment change. IAM user accounts and AWS KMS are not designed to store arbitrary configuration strings, and baking the value into a Lambda layer would still require a code change (a new layer version and reference) to update it.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!