Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.09 KB

File metadata and controls

29 lines (24 loc) · 1.09 KB

🌐 Resource Documentation: portainer_stack_webhook

portainer_stack_webhook

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

Example Usage

resource "portainer_stack_webhook" "trigger_my_stack" {
  webhook_id = "65001023-9dd7-415f-9cff-358ba0a78463"  # Webhook token of the stack
}

Lifecycle & Behavior

  • When you apply this resource, it triggers the execution of the webhook (stack update), simply run:
terraform apply

Arguments Reference

Name Type Required Description
webhook_id string ✅ yes Webhook token for the stack to trigger redeployment

Attributes Reference

Name Description
id ID of the webhook trigger