DEV Community

Discussion on: Where do you keep credentials for your Lambda functions?

Collapse
 
dvddpl profile image
Davide de Paolis

at first i thought that too. but then i found SecretsManager ( with the automatic rotation) very handy. Docs state that Secrets Manager integrates with AWS Key Management Service (AWS KMS) but honestly i didnt really where would the difference in using kms directly really lie.

Collapse
 
stevenstreib profile image
Steven Streib

The difference on the surface is in pricing:

KMS: $1/key/month, $0.03/10,000 requests
Secrets Manager: $0.40/secret/month, $0.05/10,000 requests

But the practical difference is Secrets Manager integration into services like RDS, Redshift, and DocumentDB, where rotating the secret will automatically update the corresponding passwords in the database.

Thread Thread
 
dvddpl profile image
Davide de Paolis

yep. slightly more expensive, but i find the integration and rotation very very useful.