The portainer_stack_webhook resource allows you to trigger an update of a Portainer-managed stack via its webhook.
This is useful for GitOps workflows or external automation systems.
Currently working only for Portainer BE edition
resource "portainer_stack_webhook" "trigger_my_stack" {
webhook_id = "65001023-9dd7-415f-9cff-358ba0a78463" # Webhook token of the 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 stack to trigger redeployment |
| Name | Description |
|---|---|
id |
ID of the webhook trigger |