Skip to content

v3.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 16:22
· 1 commit to main since this release
0c0720f

Upgrade notes

  • Sources and destinations: config is now read from Hookdeck. A key you set that was changed in the dashboard or API shows in the plan as config = (sensitive value), and the next apply restores your value. Keys you do not set are not compared. Removing a key from config clears it in Hookdeck or resets it to its default. To keep values managed outside Terraform, add lifecycle { ignore_changes = [config] }.
  • Once terraform apply, terraform refresh or terraform import has run on 3.1.0, 3.0.x and earlier stop on sources and destinations with "Resource instance managed by newer provider version".
  • config in state, and in the source and destination data sources, now holds the secrets Hookdeck returns, such as authentication tokens. It stays sensitive.
  • Connections: rules added outside Terraform to a connection configured without rules show in the plan, and the next apply removes them. To keep them, add lifecycle { ignore_changes = [rules] }.

See Source and destination config for the exceptions, the values that plan a change on every run, and how to go back to 3.0.x.

Features

  • New resource and data source hookdeck_outpost_project: create an Outpost project and manage its configuration. The resource needs an organization API key. See Managing Outpost with Terraform.
  • New provider attribute outpost_api_base (HOOKDECK_OUTPOST_API_BASE) sets the Outpost API host. It does not follow api_base: set both for a non-default host.
  • The hookdeck_gateway_source and hookdeck_gateway_destination data sources (and the deprecated hookdeck_source and hookdeck_destination) return config.
  • Importing a source or destination plans no change when config matches Hookdeck.

Fixes

  • Destroying a source, source auth, destination, connection or transformation that no longer exists in Hookdeck succeeds. So does destroying one whose project was deleted; with an organization API key, a refresh removes it from state.
  • API reads stop when Terraform is interrupted or the timeouts of hookdeck_outpost_project pass. A write already sent to Hookdeck still finishes, so the result reaches state.
  • Removing rules from a connection clears its rules in Hookdeck. Before, the apply failed with "Provider produced inconsistent result after apply".
  • Rules removed from a connection outside Terraform show in the plan, and the next apply restores them. Thanks @RussellEstcourt (#233).
  • hookdeck_gateway_project stays in state when the API key cannot reach the project, for example a key from another organization, instead of being created again on the next apply. Plan, rename and destroy fail with an error saying the key cannot access the project.

Full Changelog: v3.0.0...v3.1.0