github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/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 ```hcl 19 # Manage your repository 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 * `language` - (Optional) What the language of this repository should be. 38 * `has_issues` - (Optional) If this should have issues turned on or not. 39 * `has_wiki` - (Optional) If this should have wiki turned on or not. 40 * `project_key` - (Optional) If you want to have this repo associated with a 41 project. 42 * `fork_policy` - (Optional) What the fork policy should be. Defaults to 43 allow_forks. 44 * `description` - (Optional) What the description of the repo is. 45 46 ## Computed Arguments 47 48 The following arguments are computed. You can access both `clone_ssh` and 49 `clone_https` for getting a clone URL. 50 51 ## Import 52 53 Repositories can be imported using the `name`, e.g. 54 55 ``` 56 $ terraform import bitbucket_repository.my-repo my-repo 57 ```