clarkie / dynogels

DynamoDB data mapper for node.js. Originally forked from https://github.com/ryanfitz/vogels
Other
490 stars 110 forks source link

in serverless , I can defines the permission policy for the Lambda function. but if I want to use dynogels I have to give to secret key for init (Security) #142

Closed Wolke closed 6 years ago

Wolke commented 6 years ago

as tilte.

cdhowie commented 6 years ago

@Wolke I don't know why it would be necessary. Dynogels just uses the AWS nodejs SDK directly, and the SDK should be able to automatically use IAM roles assigned to Lambdas.

We are using Dynogels in production with EC2 IAM roles without any issues.

If you are having problems, please post your Lambda's source code along with the Lambda error you are seeing.

Wolke commented 6 years ago

do not have any bug in Lambda function , but give up the best security way what AWS give to lambda.

cdhowie commented 6 years ago

@Wolke I'm not sure I understand the question. IAM roles are the standard way to give permissions to a Lambda function.