Skip to content
Merged
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
10 changes: 4 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,17 @@ Creating two notification channels, one for the email and another one for slack
will alert us when the policy is triggered:

```hcl
resource "sysdig_secure_notification_channel" "devops-email" {
resource "sysdig_secure_notification_channel_email" "devops-email" {
name = "DevOps e-mail"
enabled = true
type = "EMAIL"
recipients = "[email protected]"
notify_when_ok = false
notify_when_resolved = false
}

resource "sysdig_secure_notification_channel" "devops-slack" {
resource "sysdig_secure_notification_channel_slack" "devops-slack" {
name = "DevOps Slack"
enabled = true
type = "SLACK"
url = "https://hooks.slack.com/services/32klj54h2/34hjkhhsd/wjkkrjwlqpfdirej4jrlwkjx"
channel = "#devops"
notify_when_ok = false
Expand Down Expand Up @@ -237,8 +235,8 @@ resource "sysdig_secure_policy" "terminal_shell_or_ssh_in_container" {
}
}

notification_channels = [sysdig_secure_notification_channel.devops-email.id,
sysdig_secure_notification_channel.devops-slack.id]
notification_channels = [sysdig_secure_notification_channel_email.devops-email.id,
sysdig_secure_notification_channel_slack.devops-slack.id]
}
```

Expand Down