Skip to content
This repository has been archived by the owner. It is now read-only.
Go to file
Cannot retrieve contributors at this time
40 lines (31 sloc) 991 Bytes
layout page_title sidebar_current description
Bitbucket: bitbucket_hook
Provides a Bitbucket Webhook


Provides a Bitbucket hook resource.

This allows you to manage your webhooks on a repository.

Example Usage

# Manage your repositories hooks
resource "bitbucket_hook" "deploy_on_push" {
  owner       = "myteam"
  repository  = "terraform-code"
  url         = ""
  description = "Deploy the code via my webhook"

  events = [

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.