Steps
- Put certificate in PEM format at the following path python/certs/xyz.pem. Directory structure is important.
- Zip python directory and create lambda layer using this zip file.
- Create lambda function under VPC using the below code and attach lambda layer created at step 2.
- Set Environment variable in Lambda function. Key : REQUESTS_CA_BUNDLE Value: /opt/python/certs/xyz.pem
- Test the lambda function.
Top comments (0)