terraform-provider-google/website/docs/r/source_repo_repository.html.markdown
The Magician 094b1bc673 Rename some files to match intended names (#2920)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-01-23 18:08:41 -08:00

3.1 KiB

layout page_title sidebar_current description
google Google: google_sourcerepo_repository docs-google-sourcerepo-repository A repository (or repo) is a Git repository storing versioned source content.

google_sourcerepo_repository

A repository (or repo) is a Git repository storing versioned source content.

To get more information about Repository, see:

## Example Usage - Sourcerepo Repository Basic
resource "google_sourcerepo_repository" "my-repo" {
  name = "my-repository"
}

Argument Reference

The following arguments are supported:

  • name - (Required) Resource name of the repository, of the form {{repo}}. The repo name may contain slashes. eg, name/with/slash

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • url - URL to clone the repository from Google Cloud Source Repositories.

  • size - The disk usage of the repo, in bytes.

Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 4 minutes.
  • delete - Default is 4 minutes.

Import

Repository can be imported using any of these accepted formats:

$ terraform import google_sourcerepo_repository.default projects/{{project}}/repos/{{name}}
$ terraform import google_sourcerepo_repository.default {{project}}/{{name}}
$ terraform import google_sourcerepo_repository.default {{name}}

-> If you're importing a resource with beta features, make sure to include -provider=google-beta as an argument so that Terraform uses the correct provider to import your resource.