Skip to content

Commit 58626dd

Browse files
authored
docs: Updated documentation with new resources in main webpage (#50)
This commit updates the main page explaining the Terraform provider at https://sysdiglabs.github.io/terraform-provider-sysdig/
1 parent 4d76489 commit 58626dd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/index.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,17 @@ Creating two notification channels, one for the email and another one for slack
197197
will alert us when the policy is triggered:
198198

199199
```hcl
200-
resource "sysdig_secure_notification_channel" "devops-email" {
200+
resource "sysdig_secure_notification_channel_email" "devops-email" {
201201
name = "DevOps e-mail"
202202
enabled = true
203-
type = "EMAIL"
204203
recipients = "[email protected]"
205204
notify_when_ok = false
206205
notify_when_resolved = false
207206
}
208207
209-
resource "sysdig_secure_notification_channel" "devops-slack" {
208+
resource "sysdig_secure_notification_channel_slack" "devops-slack" {
210209
name = "DevOps Slack"
211210
enabled = true
212-
type = "SLACK"
213211
url = "https://hooks.slack.com/services/32klj54h2/34hjkhhsd/wjkkrjwlqpfdirej4jrlwkjx"
214212
channel = "#devops"
215213
notify_when_ok = false
@@ -237,8 +235,8 @@ resource "sysdig_secure_policy" "terminal_shell_or_ssh_in_container" {
237235
}
238236
}
239237
240-
notification_channels = [sysdig_secure_notification_channel.devops-email.id,
241-
sysdig_secure_notification_channel.devops-slack.id]
238+
notification_channels = [sysdig_secure_notification_channel_email.devops-email.id,
239+
sysdig_secure_notification_channel_slack.devops-slack.id]
242240
}
243241
```
244242

0 commit comments

Comments
 (0)