Skip to content

Value Conversion Error configuring a connection with a retry rule #191

@mike706574

Description

@mike706574

Howdy!

I work at a company that uses Hookdeck, and we're working on upgrading to 2.2.0, and we have a connection has a retry rule with no other rules.

Here's what our connection resource looks like:

resource "hookdeck_connection" "webhooks_connection" {
  depends_on     = [hookdeck_destination.webhooks_destination]
  name           = "${var.app_name}-${var.app_env}-connection"
  source_id      = var.webhook_source_id
  destination_id = hookdeck_destination.webhooks_destination.id
  rules          = [
    {
      retry_rule = {
        count                 = 6
        interval              = 60000 # 1 minute in milliseconds
        strategy              = "exponential"
        response_status_codes = ["500-599"]
      }
    }
  ]
}

And here's the error we're getting:

Error: Value Conversion Error

  with hookdeck_connection.webhooks_connection,
  on app.tf line 1008, in resource "hookdeck_connection" "webhooks_connection":
1008:   rules          = [
1009:     {
1010:       retry_rule = {
1011:         count                 = 6
1012:         interval              = 60000 # 1 minute in milliseconds
1013:         strategy              = "exponential"
1014:         response_status_codes = ["500-599"]
1015:       }
1016:     }
1017:   ]

An unexpected error was encountered trying to convert tftypes.Value into
connection.rule. This is always an error in the provider. Please report the
following to the provider developer:

mismatch between struct and object: Struct defines fields not found in
object: deduplicate_rule.

Not sure if we're doing anything wrong after checking it over and consulting the resource docs and this example, and Terraform is trying to pin it on the provider developer, which is harsh. Looking for some help figuring it out if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions