scalr_webhook
Resource scalr_webhook
scalr_webhook
Manage the state of webhooks in Scalr. Creates, updates and destroy.
Example Usage
Basic usage:
resource "scalr_webhook" "example" {
name = "my-webhook-name"
enabled = true
endpoint_id = "ep-xxxxxxxxxx"
events = ["run:completed", "run:errored"]
workspace_id = "ws-xxxxxxxxxx"
environment_id = "env-xxxxxxxxxx"
}
Argument Reference
name
- (Required) Name of the webhook.enabled
- (Optional) Set (true/false) to enable/disable the webhook.endpoint_id
- (Required) ID of the endpoint, in the formatep-<RANDOM STRING>
.workspace_id
- (Optional) ID of the workspace, in the formatws-<RANDOM STRING>
.environment_id
- (Required if workspace ID is empty) ID of the environment, in the formatenv-<RANDOM STRING>
.events
- (Required) List of event IDs.
Attributes
All arguments plus:
id
- The webhook ID, in the formatwh-<RANDOM STRING>
.last_triggered_at
- Date/time when webhook was last triggered.
Updated 2 months ago