Setting Up mongodump and S3 First, you’ll need the AWS CLI installed and configured with an IAM account that can access the target bucket. You’ll also need to create a bucket that will house the backups.
Source: https://www.howtogeek.com/devops/how-to-set-up-automated-mongodb-backups-to-s3/