Creates a MongoDB ATLAS cluster in the an AWS region along with user who are provided access to specifi databases. VPC peering is setup to ensure traffic between the cluster and the AWS VPC containing compute resources remain within the private AWS network.
Requirement | Description |
---|---|
Terraform | Installation Instructions |
MongoDB ATLAS Account and Credentials | Create Account |
AWS Account and CLI Credentials | Create Account |
Terraform Backend | Setting up backend |
- Update
setup/state.tf
file with an AWS cli profile with admin access, Terraform backend state and lock file using pre-configured S3 bucket and DynamoDB table. - Deploy using Terraform and AWS provider
cd setup
terraform plan -out infra-plan.json
terraform apply