FEATURES PRICING ABOUT DOCS LOGIN

bitbucket_repository

Provides a Bitbucket repository resource.

This resource allows you manage your repositories such as scm type, if it is private, how to fork the repository and other options.

Example Usage

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

Argument Reference

The following arguments are supported:

Computed Arguments

The following arguments are computed. You can access both clone_ssh and clone_https for getting a clone URL.

Import

Repositories can be imported using the name, e.g.

$ terraform import bitbucket_repository.my-repo my-repo

See the source of this document at Terraform.io

REQUEST A DEMO