-
Register an API key in Atlas
Atlas -> Project -> Access management -> API Keys
- Click
Manage -> Create API Key
- Save the public key for later use
- Give the key
Project Owner
permission - Click
Next
- Save the private key for later use
Optional
- Click
Add Whitelist Entry
- Click
Use Current IP Address
- Click
Done
- Click
-
Apply changes
$ terraform init -var-file=infrastructure/portals/prod/atlas/terraform.tfvars infrastructure/portals/prod/atlas $ terraform apply -var-file=infrastructure/portals/prod/atlas/terraform.tfvars infrastructure/portals/prod/atlas
-
Terraform will prompt for DB configuration
-
Save the output variables
DB_URI
andDB_NAME
for later use