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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform Version
Terraform v1.9.8
on darwin_arm64
+ provider registry.terraform.io/prefecthq/prefect v2.13.4
Affected Resource(s)
prefect_webhook
Terraform Configuration Files
resource"prefect_service_account""service_account" {
name="service-account"account_role_name="Member"
}
resource"prefect_webhook""target_webhook" {
name="webhook"enabled=truetemplate=jsonencode({
event ="prefect.event.received"
resource = {
"prefect.resource.id"="prefect.event""prefect.resource.name"="Prefect Event"
}
data ="{{ body }}"
})
// NOTE: Not sure how service account would be passed, but perhaps something lile:// service_account_id = prefect_service_account.service_account.id
}
Debug Output
│ Error: Error during create Webhook
│
│ with prefect_webhook.target_webhook,
│ on main.tf line 42, in resource "prefect_webhook" "target_webhook":
│ 42: resource "prefect_webhook" "target_webhook" {
│
│ Could not create Webhook, unexpected error: failed to create webhook: status code=422 Unprocessable Entity, error={"detail":"`service_account` required while webhook authentication
│ is enforced"}
Expected Behavior
Webhook resource should allow specifying a service account to use.
Actual Behavior
Webhook resource does not support service account.
Steps to Reproduce
Enable require webhook auth on your Prefect Cloud account
terraform apply
The text was updated successfully, but these errors were encountered:
Community Note
Terraform Version
Affected Resource(s)
prefect_webhook
Terraform Configuration Files
Debug Output
Expected Behavior
Webhook resource should allow specifying a service account to use.
Actual Behavior
Webhook resource does not support service account.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: