The portainer_edge_stack_webhook resource allows you to trigger an update of a Portainer-managed edge stack via its webhook.
This is useful for GitOps workflows or external automation systems.
Webhookcurrently working only for Portainer BE edition
resource "portainer_edge_stack_webhook" "trigger_my_edge_stack" {
webhook_id = "65001023-9dd7-415f-9cff-358ba0a78463" # Webhook token of the edge stack
}- When you apply this resource, it triggers the execution of the webhook (stack update), simply run:
terraform apply| Name | Type | Required | Description |
|---|---|---|---|
webhook_id |
string | ✅ yes | Webhook token for the edge stack to trigger redeployment |
| Name | Description |
|---|---|
id |
ID of the webhook trigger |