github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/bitbucket/r/hook.html.markdown (about) 1 --- 2 layout: "bitbucket" 3 page_title: "Bitbucket: bitbucket_hook" 4 sidebar_current: "docs-bitbucket-resource-hook" 5 description: |- 6 Provides a Bitbucket Webhook 7 --- 8 9 # bitbucket\_hook 10 11 Provides a Bitbucket hook resource. 12 13 This allows you to manage your webhooks on a repository. 14 15 ## Example Usage 16 17 ``` 18 # Manage your respositories hooks 19 resource "bitbucket_hook" "deploy_on_push" { 20 owner = "myteam" 21 repository = "terraform-code" 22 url = "https://mywebhookservice.mycompany.com/deploy-on-push" 23 description = "Deploy the code via my webhook" 24 25 events = [ 26 "repo:push", 27 ] 28 } 29 ``` 30 31 ## Argument Reference 32 33 The following arguments are supported: 34 35 * `owner` - (Required) The owner of this repository. Can be you or any team you 36 have write access to. 37 * `repository` - (Required) The name of the repository. 38 * `url` - (Required) Where to POST to. 39 * `description` - (Required) The name / description to show in the UI. 40 * `events` - (Required) The event you want to react on.