opsgenie / terraform-provider-opsgenie

Terraform OpsGenie provider
https://registry.terraform.io/providers/opsgenie/opsgenie/latest/docs
Mozilla Public License 2.0
103 stars 137 forks source link

Matermost integration is not working #314

Open ctsanjuan opened 2 years ago

ctsanjuan commented 2 years ago

Hi all,

mattermost integration cannot be created with this provider:

Terraform Version

Affected Resource(s)

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "opsgenie_api_integration" "mattermost_devops_alerts" {
  name               = "alert_name"
  type               = "Mattermost"
  owner_team_id      = "xxxxxxxxxx"
  allow_write_access = false
  enabled = true
}

Debug Output

Error: Error occurred with Status code: 422, Message: Property [url] cannot be empty., Took: 0.037000, RequestId: ec3a0ce3-66d6-463b-b972-4a519539396f
│
│   with opsgenie_api_integration.mattermost_devops_alerts,
│   on alerts.tf line 335, in resource "opsgenie_api_integration" "mattermost_devops_alerts":
│  335: resource "opsgenie_api_integration" "mattermost_devops_alerts" {

Expected Behavior

Resource successfully created

Actual Behavior

Failed with above mentioned errors

Steps to Reproduce

  1. terraform apply