I am trying to create a 3 node MongoDB replica set using automation (ansible or terraform) in AWS. I am able to do this in the management console of AWS, but I'm not sure how to approach it.
Essentially, the script must create the instances and then set up a 3 node MongoDB replica set on them. I want to add an EBS disk on it and then maybe secure it.
All of this via Ansible (or Terrafor) so I can automate it fully.
Is this possible?