No description
  • Go 90.2%
  • HTML 3.8%
  • Shell 3.3%
  • Makefile 2.7%
Find a file
OpenTofu Core Development Team 98229b3cb5 Apply GitHub workflow changes
2025-11-18 12:20:40 +02:00
.github Apply GitHub workflow changes 2025-11-18 12:20:40 +02:00
bitbucket Merge pull request #49 from zshift/fix-hooks-skip-cert 2020-08-31 09:53:05 -07:00
scripts Fix Changelog Links Script for bitbucket provider 2017-06-26 09:48:38 -05:00
vendor Merge remote-tracking branch 'origin/master' into feature/add-bitbucket-resource-branch-restriction 2019-11-12 10:06:10 +01:00
website Merge pull request #65 from luismsousa/patch-1 2020-08-31 09:51:22 -07:00
.gitignore Updating Makefile + Add gitignore 2017-06-06 16:26:05 -04:00
.go-version provider: Ensured Go 1.11 in TravisCI and README 2019-02-22 18:24:50 -05:00
.travis.yml deps: use go modules for dep mgmt 2019-02-22 18:24:56 -05:00
CHANGELOG.md Cleanup after v1.2.0 release 2020-01-23 21:19:05 +00:00
GNUmakefile deps: use go modules for dep mgmt 2019-02-22 18:24:56 -05:00
go.mod Support for repository variables 2019-11-04 06:53:44 +01:00
go.sum upgrade hashicorp/terraform to v0.12.2 2019-06-19 09:53:58 +01:00
LICENSE initial commit 2017-06-05 20:53:59 +00:00
main.go Initial transfer of provider code 2017-06-06 11:32:04 -04:00
README.md Update README.md 2020-12-07 12:25:15 -07:00

Please note: This Terraform provider is archived, per our provider archiving process. What does this mean?

  1. The code repository and all commit history will still be available.
  2. Existing released binaries will remain available on the releases site.
  3. Issues and pull requests are not being monitored.
  4. New releases will not be published.

If anyone from the community or an interested third party is willing to maintain it, they can fork the repository and publish it to the Terraform Registry. If you are interested in maintaining this provider, please reach out to the Terraform Provider Development Program at terraform-provider-dev@hashicorp.com.

Terraform Provider

Requirements

  • Terraform 0.10.x
  • Go 1.11 (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-bitbucket

$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
$ git clone git@github.com:terraform-providers/terraform-provider-bitbucket

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-bitbucket
$ make build

Using the provider

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

# Manage your repository
resource "bitbucket_repository" "infrastructure" {
  owner = "myteam"
  name  = "terraform-code"
}

# Manage your project
resource "bitbucket_project" "infrastructure" {
  owner = "myteam" # must be a team
  name  = "terraform-project"
  key   = "TERRAFORMPROJ"
}

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.11+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-bitbucket
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Terraform needs TF_ACC env variable set to run acceptance tests

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc

About V1 APIs

This provider will not take any PRs about the v1 apis that dont have v2 equivalents. Please only focus on v2 apis when adding new featues to this provider.