This repository contains an AWS Lambda function example for creating a custom secret in AWS Secrets Manager. With this Lambda function you can rotate the credentials of a MongoDB user.
To learn more about this Lambda function and how to use it, check out my blog post: How to manage any kind of secret with AWS Secrets Manager