cisco-open / terraform-provider-meraki

A Terraform Provider for Cisco Meraki
Mozilla Public License 2.0
15 stars 6 forks source link

resource `meraki_networks_webhooks_http_servers` marked as tainted and results in an error after creating #72

Closed zbuchheit closed 2 months ago

zbuchheit commented 2 months ago

Prerequisites

Describe the bug When attempting to create meraki_networks_webhooks_http_servers I get an error after the resource is created and it is marked as tainted. The error I get is the following.

[ERROR] vertex "meraki_networks_webhooks_http_servers.webhook_http_server" error: Provider produced inconsistent result after apply
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to meraki_networks_webhooks_http_servers.webhook_http_server, provider "provider[\"registry.terraform.io/cisco-open/meraki\"]" produced an unexpected new value:
│ .http_server_id: was null, but now cty.StringVal("redacted").
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Expected behavior I expect the resource to be created successfully without issue and be able to continue to be managed by TF.

Screenshots Please provide an screenshot of the successful API call with cuRL, Postman, etc.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Example TF Program

terraform {
  required_providers {
    meraki = {
      source = "cisco-open/meraki"
      version = "0.2.3-alpha"
    }
  }
}

provider "meraki" {
  meraki_debug = "true"
}

resource "meraki_networks_webhooks_http_servers" "webhook_http_server" {
  name = "Pulumi Test Webhook"
  url = "https://example.com/test"
  network_id = "redacted"
  shared_secret = "redactedSecret"
  payload_template = {
    name = "Meraki (included)"
    payload_template_id = "wpt_00001"
  }
}
fmunozmiranda commented 2 months ago

closed due inactivity. @zbuchheit if you still have this issue, please reopen it.