You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Example - MongoDB Atlas Federated Database Query Limit with Atlas clusters
2
+
3
+
This project aims to provide an example of using [MongoDB Atlas Federated Database Query Limit](https://www.mongodb.com/docs/atlas/data-federation/overview/).
This example requires an Atlas Project to already exist. Once a project is created create the terraform.tfvars file and enter the values for all the required variables, including the project, and make sure **not to commit it**.
20
+
21
+
**2\. Review the Terraform plan**
22
+
23
+
Execute the below command and ensure you are happy with the plan. The `terraform plan` command lets you to preview the actions Terraform would take to modify your infrastructure, or save a speculative plan which you can apply later.
24
+
25
+
```bash
26
+
$ terraform plan
27
+
```
28
+
This project currently supports the below deployments:
29
+
30
+
- Two MongoDB Atlas clusters in the specified project
31
+
- MongoDB Atlas Federated Database Instance based on Atlas clusters
32
+
- MongoDB Atlas Federated Database Query Limit
33
+
34
+
**3\. Execute the Terraform apply.**
35
+
36
+
Now execute the plan to provision the Federated settings resources. The `terraform apply` command performs a plan just like `terraform plan` does, but then actually carries out the planned changes to each resource using the relevant infrastructure provider's API. It asks for confirmation from the user before making any changes, unless it was explicitly told to skip approval.
37
+
38
+
```bash
39
+
$ terraform apply
40
+
```
41
+
42
+
**4\. Destroy the resources.**
43
+
44
+
Once you are finished your testing, ensure you destroy the resources to avoid unnecessary Atlas charges. Calling the `terraform destroy` command will instruct Terraform to terminate / destroy all the resources managed. This will enable you to completely tear down and remove all resources defined in the Terraform State that have previously been deployed.
0 commit comments