Skip to content

Commit

Permalink
docs: run tfplugindocs
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpage committed Mar 2, 2023
1 parent ce711b9 commit a3ea587
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/data-sources/region.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ description: |-

Scalingo Region metadata

## Example Usage

```terraform
data "scalingo_region" "osc-fr1" {
name = "osc-fr1"
}
output "scalingo_dashboard" {
value = scalingo_region.osc-fr1.dashboard
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
27 changes: 25 additions & 2 deletions docs/resources/notifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,34 @@ data_source "scalingo_notification_platform" "slack" {
# application
resource "scalingo_notifier" "all_events" {
app = scalingo_app.test_app.id
name = "Slack Audit Notifier"
platform_id = data_source.scalingo_notification_platform.slack.id
webhook_id = "https://hooks.slack.com/services/..."
active = true
send_all_events = true
webhook_url = "https://hooks.slack.com/services/..."
}
# Create a notifier to get emails for all alerts and only selected critical
# events on the application
data_source "scalingo_notification_platform" "email" {
name = "email"
}
resource "scalingo_notifier" "all_events" {
app = scalingo_app.test_app.id
name = "Email Audit Notifier"
send_all_events = true
platform_id = data_source.scalingo_notification_platform.email.id
send_all_alerts = true
selected_events = [
"addon_deleted",
"addon_suspended",
"app_crashed_repeated",
"domain_removed",
"notifier_removed",
"variable_removed",
]
emails = ["[email protected]"]
}
```
Expand Down

0 comments on commit a3ea587

Please sign in to comment.