Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Latest commit

 

History

History
48 lines (37 loc) · 1.26 KB

index.html.markdown

File metadata and controls

48 lines (37 loc) · 1.26 KB
layout page_title sidebar_current description
bitbucket
Provider: Bitbucket
docs-bitbucket-index
The Bitbucket provider to interact with repositories, projects, etc..

Bitbucket Provider

The Bitbucket provider allows you to manage resources including repositories, webhooks, and default reviewers.

Use the navigation to the left to read about the available resources.

Example Usage

# Configure the Bitbucket Provider
provider "bitbucket" {
  username = "GobBluthe"
  password = "idoillusions" # you can also use app passwords
}

resource "bitbucket_repository" "illusions" {
  owner      = "theleagueofmagicians"
  name       = "illusions"
  scm        = "hg"
  is_private = true
}

resource "bitbucket_project" "project" {
  owner      = "theleagueofmagicians" # must be a team
  name       = "illusions-project"
  key        = "ILLUSIONSPROJ"
  is_private = true
}

Argument Reference

The following arguments are supported in the provider block:

  • username - (Required) Your username used to connect to bitbucket. You can also set this via the environment variable. BITBUCKET_USERNAME

  • password - (Required) Your password used to connect to bitbucket. You can also set this via the environment variable. BITBUCKET_PASSWORD