/slim-mongorestore-s3

Debian slim + mongorestore + AWS CLI docker image for Kubernetes; rigged up to restore a MongoDB mongodump stored in an S3 bucket

Primary LanguageShellMIT LicenseMIT

slim-mongorestore-s3

Debian slim + mongorestore + AWS CLI docker image for Kubernetes; rigged up to backup mongodb, a single database, or a single collection to an s3 bucket

docker pulls

This docker image contains:

Environment variables

Source archive

AWS_S3_URI - the S3 URI to the archive to restore

MongoDB and mongorestore options

AWS Credentials and S3 options

Pass in the following environment variables for AWS CLI credientals.

  • AWS_ACCESS_KEY_ID – Specifies an AWS access key associated with an IAM user or role.
  • AWS_SECRET_ACCESS_KEY – Specifies the secret key associated with the access key. This is essentially the "password" for the access key.
  • AWS_DEFAULT_REGION – Specifies the AWS Region to send the request to.
  • AWS_PROFILE - specifies a pre-configured AWS profile - see AWS CLI docs

For more options you can configure with environment variables refer to: AWS Environment Variables