mongodb-backup

dasmeta/mongodb-backup/aws

Terraform Module HCL AWS

Terraform module to backup mongodb contents into S3 for AWS / EKS

Install
module "mongodb-backup" {
source = "dasmeta/mongodb-backup/aws"
version = "1.0.1"
}
plain text: /constructs/tfmod-dasmeta-mongodb-backup-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

About Helm chart install Terraform module to backup and restore a Mongo database. Usage mongodb_backup_minimal: ``hcl module mongodb_backup_minimal { source = "dasmeta/mongodb-backup/aws" mongodb_host = "localhost" mongodb_username = "root" mongodb_password = "password" cron_schedule = "0 3 " # “every day at 03:00 am” run_as_daemon = "false" init_backup = "false" backup_user_name = "aws-iam-user" s3_bucket = "aws-s3-bucket-name" # it suppose this bucket already creaated } ` mongodb_backup_connection_url: `hcl module mongodb_backup_connection_url { source = "dasmeta/mongodb-backup/aws" app_name = "test" mongodb_host = "localhost" mongodb_uri = "mongodb+srv://..." cron_schedule = "/5 " run_as_daemon = "false" init_backup = "false" backup_user_name = "backup_user" s3_bucket = "mongoatlas-dev-

Inputs (22)
NameTypeDescriptionDefault
s3_bucketstringThe bucket backups will be stored. required
run_as_daemonstringin case of true deployment will be created (as daemon) elwise kube cronJob will "false"
aws_default_regionstringaws-default-region."eu-central-1"
app_namestringHelm app/release name"mongodb-backup-aws"
mongodb_databasestringMongodb database to be backed up. All databases will be backed up if not specifi""
max_backupsstringMax backups'"30"
init_backupstringIf enabled scripts will do backup right on the start and then according to the sfalse
backup_user_namestringBackup user name for s3 bucket"mongodb-backup-s3-bucket"
mongodb_usernamestringMongodb user name script will need to pull data from mongodb.""
mongodb_uristring--uri param from mongodump docs""
mongodb_hoststringMongodb host name backup script will be taking data from."localhost"
mongodb_exclude_collectionsstringMongodb collections to be excluded from the backup. All collections will be back""
mongodb_passwordstringMongodb user password script will need to pull data from mongodb.""
mongodb_portstringMongodb user password script will need to pull data from mongodb."27017"
create_userboolCreate User for S3true
volume_storageClassstringVolume strage class AWS will be claimed for. No need for fast storage as this wi"gp2"
cron_schedulestringBackup schedule, in crojob format. E.g. '3 0 * * *'"3 0 * * *"
init_restorestringIf enabled scripts will do restore right on the start and then according to the false
app_versionstringHelm app/release version"0.1.0"
namespacestringHelm app/release namespace"default"
resourcesobject({ limits = object({Allows to set cpu/memory resources Limits/Requests for deployment/cronjob{ "limits": { "cpu": "300m", "
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars4
Forks5
Total downloads6.7k
Inputs22
LicenseApache-2.0
Namespacedasmeta
Updated