https://github.com/learningbyplaying/terraform-ansible-mongodb-cluster
https://github.com/learningbyplaying/terraform-ansible-mongodb-cluster
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/learningbyplaying/terraform-ansible-mongodb-cluster
- Owner: learningbyplaying
- Created: 2023-05-22T13:30:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T13:50:02.000Z (about 3 years ago)
- Last Synced: 2025-06-02T15:49:45.607Z (about 1 year ago)
- Language: HCL
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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