Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Updates alert-config examples #2378

Merged
merged 3 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/docs/d/alert_configuration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "mongodbatlas_alert_configuration" "test" {
delay_min = 0
sms_enabled = false
email_enabled = true
roles = ["GROUP_CHARTS_ADMIN", "GROUP_CLUSTER_MANAGER"]
roles = ["GROUP_CLUSTER_MANAGER"]
}

matcher {
Expand Down
21 changes: 10 additions & 11 deletions website/docs/r/alert_configuration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource "mongodbatlas_alert_configuration" "test" {
delay_min = 0
sms_enabled = false
email_enabled = true
roles = ["GROUP_CHARTS_ADMIN", "GROUP_CLUSTER_MANAGER"]
roles = ["GROUP_CLUSTER_MANAGER"]
}

matcher {
Expand Down Expand Up @@ -60,13 +60,13 @@ resource "mongodbatlas_alert_configuration" "test" {
delay_min = 0
sms_enabled = false
email_enabled = true
roles = ["GROUP_CHARTS_ADMIN", "GROUP_CLUSTER_MANAGER"]
roles = ["GROUP_CLUSTER_MANAGER"]
}

matcher {
field_name = "HOSTNAME_AND_PORT"
field_name = "CLUSTER_NAME"
operator = "EQUALS"
value = "SECONDARY"
value = "my-cluster"
}

threshold_config {
Expand Down Expand Up @@ -257,12 +257,11 @@ List of notifications to send when an alert condition is detected.

| Project roles | Organization roles |
|:---------- |:----------- |
| `GROUP_CHARTS_ADMIN` | `ORG_OWNER` |
| `GROUP_CLUSTER_MANAGER` | `ORG_MEMBER` |
| `GROUP_DATA_ACCESS_ADMIN` | `ORG_GROUP_CREATOR` |
| `GROUP_DATA_ACCESS_READ_ONLY` | `ORG_BILLING_ADMIN` |
| `GROUP_DATA_ACCESS_READ_WRITE` | `ORG_READ_ONLY` |
| `GROUP_OWNER` | |
| `GROUP_CLUSTER_MANAGER` | `ORG_OWNER` |
| `GROUP_DATA_ACCESS_ADMIN` | `ORG_MEMBER` |
| `GROUP_DATA_ACCESS_READ_ONLY` | `ORG_GROUP_CREATOR` |
| `GROUP_DATA_ACCESS_READ_WRITE` | `ORG_BILLING_ADMIN` |
| `GROUP_OWNER` | `ORG_READ_ONLY` |
| `GROUP_READ_ONLY` | |

## Attributes Reference
Expand All @@ -280,7 +279,7 @@ In addition to all arguments above, the following attributes are exported:
Alert Configuration can be imported using the `project_id-alert_configuration_id`, e.g.

```
$ terraform import mongodbatlas_alert_configuration.test 5d0f1f74cf09a29120e123cd-5d0f1f74cf09a29120e1fscg
terraform import mongodbatlas_alert_configuration.test 5d0f1f74cf09a29120e123cd-5d0f1f74cf09a29120e1fscg
```

**NOTE**: Third-party notifications will not contain their respective credentials as these are sensitive attributes. If you wish to perform updates on these notifications without providing the original credentials, the corresponding `notifier_id` attribute must be provided instead.
Expand Down