Take advantage of environment reuse, and check that
background processes have completed.
▪ Manage database connection pooling with a database
proxy. Persist state data externally.
▪ Configure Function with Resource-based policy. Resourcebased policy grants permissions to invoke your lambda
function. Execution role defines a function's permission to
interact with resources.
▪ Use Environment variables to store secrets securely and
adjust your function's behavior without updating code. An
environment variable is a pair of strings that are stored in a
function's version-specific configuration.
https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html