Skip to content

This repo is about creating a mongodb replica set using Packer, Ansible, Terraform and Aws to provision it

Notifications You must be signed in to change notification settings

crizstian/mongo-replica-hashicorp-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deploy a MongoDB Replica Set in a DevOps fashion style (Infrastructre as Code)

Complete code for the article Deploy a MongoDB Replica Set in a DevOps fashion style (Infrastructre as Code) is a walkthrough in how to set up a MongoDB replica set with authentication using docker + Hashicorp tools in AWS.

Technologies

  • Packer v1.3.1
  • Ansible
  • Terraform v0.11.10
  • Docker 18.06.0-ce
  • MongoDB 4.0.7
  • Bash Scripting

Architecure Diagram

Medium article

PRE-REQUISITES

This is an intermediate DevOps exercise, so I will assume that people who are going to read this article, has experience on the specs mentioned before, I also made this article the most friendly as possible so that beginners can also understand and follow up.

Note: If you want to followup this exercise as it is, you may need to have an aws account, and the Hashicorp binaries installed locally. This may generate a cost for your aws account, but this can also be done on a free tier account.If you're not using an account that qualifies under the AWS free-tier, you may be charged to run these examples. The charge should only be a few cents, but I will not be responsible if it ends up being more. If you are ready to go and have an aws account you will need also to create an aws key pair so you can use this pem file to ssh to the instances that we are going to create in aws.

About

This repo is about creating a mongodb replica set using Packer, Ansible, Terraform and Aws to provision it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published