An open API service indexing awesome lists of open source software.

https://github.com/learningbyplaying/terraform-ansible-mongodb-cluster


https://github.com/learningbyplaying/terraform-ansible-mongodb-cluster

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# References:

https://blog.eleven-labs.com/en/deploy-a-replicated-mongodb-on-aws-with-terraform-and-ansible/

# Setup:

## Environment

sudo ./setup.sh

terraform init

## Setup AWS

sudo ./scripts/aws-cli-install.sh
aws configure

## Credentials

- AMI Role on EC2 as Amin: Create an admin role that can manage EC2 on AMI > Roles.
Then attach the role to an EC2.
- Other

#Terraform Commands:

terraform plan [dir] #Example: terraform plan ./templates/aws/test

terraform apply [dir]

terraform destroy [dir]

#Ansible Commands:

./play.sh