AWS solutions medium security documentation change
Summary
Updated Node.js runtime from 20.x to 22.x and added example Lambda implementation section
Security assessment
Runtime update likely includes security patches. Added example implementation improves security documentation by showing proper Secrets Manager access patterns, reducing risk of credential mishandling.
Diff
diff --git a/solutions/latest/constructs/aws_lambda_secretsmanager.md b/solutions/latest/constructs/aws_lambda_secretsmanager.md index 40ae0905c..108c94716 100644 --- a//solutions/latest/constructs/aws_lambda_secretsmanager.md +++ b//solutions/latest/constructs/aws_lambda_secretsmanager.md @@ -5 +5 @@ -OverviewPattern Construct PropsPattern PropertiesDefault settingsArchitectureGithub +OverviewPattern Construct PropsPattern PropertiesDefault settingsArchitectureExample Lambda Function ImplementationGithub @@ -37 +37 @@ Typescript - runtime: lambda.Runtime.NODEJS_20_X, + runtime: lambda.Runtime.NODEJS_22_X, @@ -80 +80 @@ Java - .runtime(Runtime.NODEJS_20_X) + .runtime(Runtime.NODEJS_22_X) @@ -147,0 +148,4 @@ Out of the box implementation of the Construct without any override will set the +## Example Lambda Function Implementation + +While Solutions Constructs does not publish code for the Lambda function to get a Secret from Secrets Manager, there is example code available here: ['example'](https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/javascriptv3/example_code/secrets-manager/actions/get-secret-value.js). (this example is in JavaScript, but examples in other languages can also be found at this site) +