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
38 lines (29 sloc) 1.2 KB
layout page_title sidebar_current description
Bitbucket: bitbucket_branch_restriction
Provides a Bitbucket Branch Restriction


Provides a Bitbucket branch restriction resource.

This allows you for setting up branch restrictions for your repository.

Example Usage

# Manage your repositories branch restrictions
resource "bitbucket_branch_restriction" "master" {
  owner      = "myteam"
  repository = "terraform-code"

  kind = "push"
  pattern = "master"

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.
  • kind - (Required) The type of restriction that is being applied. List of possible stages is here.
  • pattern - (Required) The pattern to determine which branches will be restricted.
  • users - (Optional) A list of users to use.
  • groups - (Optional) A list of groups to use.