You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 18b5002
Browse filesBrowse the repository at this point in the historyBrowse files
<Tip>**Plan requirement**: This feature requires an On-call Standard or higher subscription. [Learn more](https://flashcat.cloud/flashduty/price/)</Tip>
8
8
9
-
Use Scalr webhooks to sync Terraform and OpenTofu runs to Flashduty On-call. Each run becomes one Flashduty change: the change is created when a run waits for a person to confirm it, and the same change is updated when the run applies, errors, is canceled, or is discarded.
9
+
Use Scalr webhooks to sync Terraform and OpenTofu runs to Flashduty On-call. Each run becomes one Flashduty change: the change is created when a run waits for a person to confirm it, and the same change is updated when the run appliesor errors.
10
10
11
11
<divclassName="hide">
12
12
@@ -38,7 +38,7 @@ At account scope, go to **Integrations → Events Forwarding → Webhook** and c
38
38
39
39
<Steptitle="Assign it to environments">
40
40
41
-
In the webhook's Environments, select the environments you want to connect.
41
+
A new webhook is created with **Allow all current and future environments to have access to this webhook** turned on, so no assignment is needed. To limit it, turn that switch off in the webhook's **Environments access** tab and select the environments you want to connect.
42
42
43
43
</Step>
44
44
</Steps>
@@ -50,19 +50,18 @@ In the webhook's Environments, select the environments you want to connect.
50
50
|---|---|---|
51
51
| Run |`run.id`, for example `run-v0oe5ki1pnaptv123`| Every delivery of one run updates the same change; two runs of the same workspace are two changes |
52
52
53
-
Scalr sends a delivery at only three moments: a run needs a person's confirmation, a run finishes successfully, and a run errorsor is canceled. A change therefore has no Ready or Processing state; its first state is Planned (waiting for confirmation) or an end state. A run that applies automatically produces one record, when it ends.
53
+
Scalr sends a delivery at only three moments: a run needs a person's confirmation, a run finishes successfully, and a run errors. Canceling a run or discarding it at the confirmation step sends nothing, so such a run's change stays Planned (or is never created). A change therefore has no Ready or Processing state; its first state is Planned (waiting for confirmation) or an end state. A run that applies automatically produces one record, when it ends.
54
54
55
55
## Status mapping
56
56
---
57
57
58
-
| Delivery event (event-name) | Run status (run.status) | Flashduty change status |
58
+
| Delivery event (event_name) | Run status (run.status) | Flashduty change status |
59
59
|---|---|---|
60
60
| run:needs_attention | any, for example planned or policy_override (waiting for confirmation or a policy override) | Planned |
61
61
| run:completed | applied | Done |
62
62
| run:errored | errored | Failed |
63
-
| run:errored | canceled, discarded | Canceled |
64
63
65
-
End events are mapped by run status: `applied` is Done, `errored` is Failed, and`canceled`and`discarded`(a run abandoned at the confirmation step) are Canceled. Done, Failed, and Canceled are end states, and Flashduty records the change's end time.
64
+
End events are mapped by run status: `applied` is Done and `errored` is Failed (a`canceled`or`discarded`status in an end event would be Canceled, but Scalr does not send one). Doneand Failed are end states, and Flashduty records the change's end time.
66
65
67
66
These deliveries return success and create no change: an end event whose run status is `planned_and_finished` (a plan-only or no-change run, nothing was applied), and any event outside the `run:` family.
通过 Scalr 的 Webhook 将 Terraform / OpenTofu Run 同步到 Flashduty On-call。每一次 Run 对应一条 Flashduty 变更:Run 等待人工确认时创建变更,Apply 成功、出错、被取消或被放弃时更新同一条变更。
9
+
通过 Scalr 的 Webhook 将 Terraform / OpenTofu Run 同步到 Flashduty On-call。每一次 Run 对应一条 Flashduty 变更:Run 等待人工确认时创建变更,Apply 成功或出错时更新同一条变更。
10
10
11
11
<divclassName="hide">
12
12
@@ -38,7 +38,7 @@ Webhook 在 Account 范围创建,再分配给 Environment;分配后,该 En
38
38
39
39
<Steptitle="分配给 Environment">
40
40
41
-
在 Webhook 的 Environments 中,选择需要接入的 Environment。
41
+
新建的 Webhook 默认开启 **Allow all current and future environments to have access to this webhook**,无需再分配。如需限定范围,在 Webhook 的 **Environments access** 页签关闭该开关,再选择需要接入的 Environment。
42
42
43
43
</Step>
44
44
</Steps>
@@ -50,19 +50,18 @@ Webhook 在 Account 范围创建,再分配给 Environment;分配后,该 En
50
50
|---|---|---|
51
51
| Run |`run.id`,例如 `run-v0oe5ki1pnaptv123`| 同一个 Run 的所有推送更新同一条变更;同一 Workspace 的两次 Run 是两条变更 |
0 commit comments