Repository navigation
Upgrade notes
- Sources and destinations:
configis now read from Hookdeck. A key you set that was changed in the dashboard or API shows in the plan asconfig = (sensitive value), and the next apply restores your value. Keys you do not set are not compared. Removing a key fromconfigclears it in Hookdeck or resets it to its default. To keep values managed outside Terraform, addlifecycle { ignore_changes = [config] }. - Once
terraform apply,terraform refreshorterraform importhas run on 3.1.0, 3.0.x and earlier stop on sources and destinations with "Resource instance managed by newer provider version". configin 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
rulesshow in the plan, and the next apply removes them. To keep them, addlifecycle { 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 followapi_base: set both for a non-default host. - The
hookdeck_gateway_sourceandhookdeck_gateway_destinationdata sources (and the deprecatedhookdeck_sourceandhookdeck_destination) returnconfig. - Importing a source or destination plans no change when
configmatches 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
timeoutsofhookdeck_outpost_projectpass. A write already sent to Hookdeck still finishes, so the result reaches state. - Removing
rulesfrom 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_projectstays 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