github.com/mapuri/terraform@v0.7.6-0.20161012203214-7e0408293f97/website/source/docs/providers/bitbucket/r/repository.html.markdown (about)

     1  ---
     2  layout: "bitbucket"
     3  page_title: "Bitbucket: bitbucket_repository"
     4  sidebar_current: "docs-bitbucket-resource-repository"
     5  description: |-
     6    Provides a Bitbucket Repository
     7  ---
     8  
     9  # bitbucket\_repository
    10  
    11  Provides a Bitbucket repository resource.
    12  
    13  This resource allows you manage your repositories such as scm type, if it is
    14  private, how to fork the repository and other options.
    15  
    16  ## Example Usage
    17  
    18  ```
    19  # Manage your respository
    20  resource "bitbucket_repository" "infrastructure" {
    21      owner = "myteam"
    22      name = "terraform-code"
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `owner` - (Required) The owner of this repository. Can be you or any team you
    31    have write access to.
    32  * `name` - (Optional) The name of the repository.
    33  * `scm` - (Optional) What SCM you want to use. Valid options are hg or git.
    34    Defaults to git.
    35  * `is_private` - (Optional) If this should be private or not. Defaults to `true`.
    36  * `website` - (Optional) URL of website associated with this repository.
    37  * `has_issues` - (Optional) If this should have issues turned on or not.
    38  * `has_wiki` - (Optional) If this should have wiki turned on or not.
    39  * `project_key` - (Optional) If you want to have this repo associated with a
    40    project.
    41  * `fork_policy` - (Optional) What the fork policy should be. Defaults to
    42    allow_forks.
    43  * `description` - (Optional) What the description of the repo is.
    44  
    45  ## Computed Arguments
    46  
    47  The following arguments are computed. You can access both `clone_ssh` and
    48  `clone_https` for getting a clone URL.