opsgenie / terraform-provider-opsgenie

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

[feature request] opsgenie_api_integration - allow setting allowConfigurationAccess parameter #436

Open martendeng opened 2 months ago

martendeng commented 2 months ago

Hi, this is a feature request.

Terraform Version

1.5.7

Affected Resource(s)

Terraform Configuration Files

resource "opsgenie_api_integration" "default" {
  name                     = "my_integration"
  type                     = "Api"
  allowConfigurationAccess = true // proposed new field
}

Desired Behavior

Allow setting the allowConfigurationAccess field via terraform https://docs.opsgenie.com/docs/integration-api#create-api-based-integration

Screenshot 2024-06-25 at 3 23 56 PM

Why is this needed?

It seems like some integrations might use the authenticate integration endpoint to validate that the integration is a valid type. By default allowConfigurationAccess is set to false which will block them from accessing this endpoint and therefore cause this validation to fail. This is a major blocker for us and others to IaC Opsgenie with other integrations.

References

Relevant issue regarding the Sentry integration: https://github.com/getsentry/sentry/issues/59517