Add "Webhooks" Resource to the Terraform Harness Provider
complete
S
Successive Silverfish
We want the ability to create webhooks using the Terraform Harness Provider
Log In
Shylaja Sundararajan
complete
Shylaja Sundararajan
Refer Terraform documentation for this feature https://registry.terraform.io/providers/harness/harness/latest/docs/resources/platform_gitx_webhook
Sample Script
//Create Project level webhook
resource "harness_platform_gitx_webhook" "test" {
identifier = "webhook Identifier"
name = "webhook name"
project_id = "projectIdentifier"
org_id = "orgIdentifier"
repo_name = "repo name"
connector_ref = "connectorRef"
}
//Create Org level webhook
resource "harness_platform_gitx_webhook" "test" {
identifier = "webhook Identifier"
name = "webhook name"
org_id = "orgIdentifier"
repo_name = "repo name"
connector_ref = "connectorRef"
}
//Create Account level webhook
resource "harness_platform_gitx_webhook" "test" {
identifier = "webhook Identifier"
name = "webhook name"
repo_name = "repo name"
connector_ref = "connectorRef"
}
This post was marked as
in progress
Rohan Gupta
long-term
S
Successive Silverfish
Additionally, just to be explicitly clear we're interested in the Webhook resource that is used for BiDirectional sync as mentioned here:
S
Successive Silverfish
We want a webhooks resource added to the terraform harness provider that Harness officially supports:
Prasad Satam
pending feedback
We do have an API to create
S
Successive Silverfish
Prasad Satam See my two previous comments
Prasad Satam
Successive Silverfish - We do have an API to create webhooks - https://apidocs.harness.io/tag/webhook#operation/createWebhook, will this help?