Files
opentf/website/source/docs/providers/bitbucket/r/hook.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

989 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
bitbucket Bitbucket: bitbucket_hook docs-bitbucket-resource-hook Provides a Bitbucket Webhook

bitbucket_hook

Provides a Bitbucket hook resource.

This allows you to manage your webhooks on a repository.

Example Usage

# Manage your respositories hooks
resource "bitbucket_hook" "deploy_on_push" {
  owner       = "myteam"
  repository  = "terraform-code"
  url         = "https://mywebhookservice.mycompany.com/deploy-on-push"
  description = "Deploy the code via my webhook"

  events = [
    "repo:push",
  ]
}

Argument Reference

The following arguments are supported:

  • owner - (Required) The owner of this repository. Can be you or any team you have write access to.
  • repository - (Required) The name of the repository.
  • url - (Required) Where to POST to.
  • description - (Required) The name / description to show in the UI.
  • events - (Required) The event you want to react on.