terraform-provider-google/website/docs/r/sourcerepo_repository.html.markdown
Jonathan Pentecost e3b6e3ea8c google/resource_source_repos_repository: Export repository url (#943)
* google/resource_source_repos_repository: Export repository url

* website/docs/r/sourcerepo_repository: Update official documentation link
2018-01-10 11:26:16 -08:00

1.0 KiB

layout page_title sidebar_current description
google Google: google_sourcerepo_repository docs-google-sourcerepo_repository Manages repositories within Google Cloud Source Repositories.

google_sourcerepo_repository

For more information, see the official documentation and API

Example Usage

This example is the common case of creating a repository within Google Cloud Source Repositories:

resource "google_sourcerepo_repository" "frontend" {
  name = "frontend"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the repository that will be created.

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

Attributes Reference

The following attributes are exported:

  • size - The size of the repository.
  • url - The url to clone the repository.