1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
Hi,
When running in Lambda, you don't want to use env var for access keys and secret keys: it is a bad practice.
You rather want to use the Lambda execution role and grant it the service credentials needed by your use case: https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html
This article explains very well how to use the execution role: https://medium.com/aws-lambda-serverless-developer-guide-with-hands/aws-lambda-permissions-execution-role-and-resource-based-policies-be2e325998fc
Best,
Didier
관련 콘텐츠
- AWS 공식업데이트됨 2년 전