-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: migrate Microsoft Teams Alert Channels to API v2
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
- Loading branch information
Showing
4 changed files
with
88 additions
and
367 deletions.
There are no files selected for viewing
37 changes: 35 additions & 2 deletions
37
examples/resource_lacework_alert_channel_microsoft_teams/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,39 @@ | ||
terraform { | ||
required_providers { | ||
lacework = { | ||
source = "lacework/lacework" | ||
} | ||
} | ||
} | ||
|
||
provider "lacework" {} | ||
|
||
resource "lacework_alert_channel_microsoft_teams" "example" { | ||
name = "Microsoft Teams Channel Alert Example" | ||
webhook_url = "https://outlook.office.com/webhook/api-token" | ||
name = var.channel_name | ||
webhook_url = var.webhook_url | ||
|
||
// test_integration input is used in this example only for testing | ||
// purposes, it help us avoid sending a "test" request to the | ||
// system we are integrating to. In production, this should remain | ||
// turned on ("true") which is the default setting | ||
test_integration = false | ||
} | ||
|
||
// Variables and Outputs used in our integration tests (integration/) | ||
variable "channel_name" { | ||
type = string | ||
default = "Microsoft Teams Alert Channel Example" | ||
} | ||
|
||
variable "webhook_url" { | ||
type = string | ||
default = "https://outlook.office.com/webhook/api-token" | ||
} | ||
|
||
output "channel_name" { | ||
value = lacework_alert_channel_microsoft_teams.example.name | ||
} | ||
|
||
output "webhook_url" { | ||
value = lacework_alert_channel_microsoft_teams.example.webhook_url | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.