In Flashduty On-call
- In the Flashduty console, go to Integration Center → Change Events
- Select HCP Terraform and enter an integration name
- To assign changes to specific channels, add rules under the integration’s Routes that match labels such as
organizationorworkspace - Click Save and copy the generated Push URL
Configure HCP Terraform
Notifications are configured per workspace, so configure one for each workspace you want to connect. You need admin permission on the workspace.
1
Open notification settings
In the workspace, go to Settings → Notifications and click Create a notification.
2
Enter the Push URL
- Destination: select Webhook
- Name: enter a recognizable name, such as
Flashduty - Webhook URL: paste the complete Flashduty integration Push URL
- Token: leave it empty; Flashduty authenticates with the
integration_keyin the Push URL
3
Select triggers
- Under Run Events, select All events
- Under Workspace Events (drift detection, auto destroy, and so on), select No events; Flashduty ignores these notifications
- Click Create a notification
tfe provider: a tfe_notification_configuration resource with destination_type = "generic", url set to the Push URL, and triggers set to ["run:created", "run:planning", "run:needs_attention", "run:applying", "run:completed", "run:errored"].
What one change is
Status mapping
Done, Failed, and Canceled are end states; Flashduty records the change’s end time.
planned_and_finished means a run that only planned (no changes, or a plan-only run). It is also recorded as Done; use the run_status label to tell it apart.
The following deliveries are accepted without creating a change: the verification request sent on save or by Send a test (trigger verification), health assessment notifications (assessment:drifted, assessment:check_failure, assessment:failed), and workspace notifications (workspace:auto_destroy_reminder, workspace:auto_destroy_run_results, workspace:deleted).
Change content
Use labels for routing and for filtering the change list:
FAQ
Why are no changes arriving?
Why are no changes arriving?
- Make sure the notification is enabled and Run Events are selected. Workspace Events alone create no changes
- Check recent deliveries and Flashduty’s responses on the notification configuration page
- Notifications are per workspace; make sure the run’s workspace has this notification configured
Are repeated deliveries recorded twice?
Are repeated deliveries recorded twice?
No. An event with the same run, status, and time is recorded only once.
Does drift detection create changes?
Does drift detection create changes?
No. A health assessment reports resources drifting from their configuration, not a change. Flashduty accepts it and ignores it.
The delivery returns an InvalidParameter error
The delivery returns an InvalidParameter error
unsupported notifications[].triggerorunsupported notifications[].run_status: Flashduty received a trigger or run status it does not support yet; contact usrun_id is missing: the payload is incomplete; make sure it comes from an HCP Terraform webhook notification