terraform-provider-opsgenie icon indicating copy to clipboard operation
terraform-provider-opsgenie copied to clipboard

api_integration with 'enabled=false' ends up created as 'enabled=true'

Open plaes opened this issue 3 years ago • 0 comments

Hi there,

When creating a new opsgenie_api_integration resource with enabled = false, the created resource is created with enabled = true in OpsGenie side.

Basically:

$ terraform apply

  # module.opsgenie_api_integration.this will be created
  + resource "opsgenie_api_integration" "this" {
      + allow_write_access     = true
      + api_key                = (sensitive value)
      + enabled                = false
      + id                     = (known after apply)
      + name                   = "name Pingdom"
      + suppress_notifications = true
      + type                   = "PingdomV2"
    }

Apply complete! Resources: 1 added, 0 changed, 0 destroyed

$ terraform plan

Terraform will perform the following actions:

  # module.opsgenie-api.opsgenie_api_integration.this will be updated in-place
  ~ resource "opsgenie_api_integration" "this" {
      ~ enabled                = true -> false
        id                     = "..."
        name                   = "name Pingdom"
        # (5 unchanged attributes hidden)
    }

Terraform Version

Terraform v1.2.5
on darwin_amd64
+ provider registry.terraform.io/opsgenie/opsgenie v0.6.14

Affected Resource(s)

Please list the resources as a list, for example:

  • api_integration

plaes avatar Sep 16 '22 08:09 plaes