Skip to content

Commit

Permalink
Allow for configuring webhook_url (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Claus Albøge <[email protected]>
Co-authored-by: nitrocode <[email protected]>
  • Loading branch information
3 people committed Dec 21, 2021
1 parent 0165b54 commit 9d5f2c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/api_integration/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ resource "opsgenie_api_integration" "this" {
allow_write_access = try(var.api_integration.allow_write_access, true)
ignore_responders_from_payload = try(var.api_integration.ignore_responders_from_payload, false)
suppress_notifications = try(var.api_integration.suppress_notifications, false)
webhook_url = try(var.api_integration.webhook_url, null)

owner_team_id = try(var.api_integration.owner_team_id, null)
}
1 change: 1 addition & 0 deletions modules/config/api_integrations.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ resource "opsgenie_api_integration" "this" {
allow_write_access = try(each.value.allow_write_access, true)
ignore_responders_from_payload = try(each.value.ignore_responders_from_payload, false)
suppress_notifications = try(each.value.suppress_notifications, false)
webhook_url = try(each.value.webhook_url, null)

# Look up our team id by name
owner_team_id = try(opsgenie_team.this[each.value.owner_team_name].id, null)
Expand Down

0 comments on commit 9d5f2c7

Please sign in to comment.