This repository contains all relevant files for automatically deploy a MongoDB Ops Manager including configured Backup.
In addition, you can specify the number of agent nodes which will be available for a MongoDB deployment.
This is only for demo purposes only and IS NOT suitable for production deployment!
This repository is utilizing Terraform which is an open-source infrastructure as code software tool. Terraform will automate the deployment of infrastructure components, copy required files from this folder and execute installation scripts according to the Ops Manager manual. In addition, a python application is used for configuration of the backup capabilities via Ops Manager APIs.
- Install Terraform
- provide aws credentials e.g. in /.aws/credentials
- Run
terraform init
- Install python package "requests"
- Create terraform.tfvars within the AWS_OpsManager directory. For this copy terraform.tfvars.template, fill in your required paramters and rename the file to terraform.tfvars
- Run
terraform apply
- Confirm plan by entering
yes
- Use output URL to access Ops Manager UI
- Run
terraform destroy
- Confirm destruction of all resources by entering
yes
- Delete the file agentConfig.json