How do I store a private key the right way for aws lambda

Have a look at what I did in this post.

I generated the keys on AWS and then stored then in SSM.

1 Like