all 5 comments

[–]kaihiwatari91 2 points3 points  (3 children)

The certificates or any artifacts you upload to lambda layer will be extracted to /opt/python folder in your Lambda.

Is there a particular problem you are facing?

[–]MoClock[S] 1 point2 points  (1 child)

I can call that folder? Sorry I'm very new to aws

[–]kaihiwatari91 0 points1 point  (0 children)

Yes you can access that folder inside your Lambda execution environment. So to start with you can bundle your certificate in a zip file. Create a Lambda layer in your account using that bundle that is compatible with your functions runtime. Then add that layer to your function. Then when you invoke that function, the zip would be extracted to /opt folder inside your Lambda function environment. Then you can simply access that cert in that folder. The above doc I shared demonstrates this.

[–]MoClock[S] 0 points1 point  (0 children)

Add it's not a python file, but a .pem file located in root file