Terraform scripts for MongoDB Replica Cluster provisioning
- Generate a KeyPair and add the name of the KeyPair in variables.tf file.
- Get the pem file and place it in the project folder with 660 permission to be used by terraform to ssh and execute startup scripts
- Execute
aws configure
to configure your credencials to be used by Terraform - Edit all the files with name variables.tf with your personal configuration
terraform init terraform workspace new terraform get terraform plan
terraform apply
terraform destroy