
Create Lambda function with a Lambda layer
dependencies directory for the python packages and the src directory for the Lambda function business logic.mysql-connector-python package.mysql-connector-python layer which allows it to import the package successfully./opt directory which allows us to view the files that were uploaded by the layer.mysql-connector-python shared across various Lambda functions that require connections to RDS MySQL./opt directory can be specified in the various connect commands.git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/lambda-layer-terraformterraform initterraform apply --auto-approve