# Google Cloud Source Repository Module This module allows managing a single Cloud Source Repository, including IAM bindings. ## Examples ### Simple repository with IAM ```hcl module "repo" { source = "./modules/source-repository" project_id = "my-project" name = "my-repo" iam = { "roles/source.reader" = ["user:foo@example.com"] } } # tftest modules=1 resources=2 ``` ## Variables | name | description | type | required | default | |---|---|:---:|:---:|:---:| | [name](variables.tf#L23) | Repository name. | string | ✓ | | | [project_id](variables.tf#L28) | Project used for resources. | string | ✓ | | | [iam](variables.tf#L17) | IAM bindings in {ROLE => [MEMBERS]} format. | map(list(string)) | | {} | ## Outputs | name | description | sensitive | |---|---|:---:| | [id](outputs.tf#L17) | Repository id. | | | [url](outputs.tf#L22) | Repository URL. | |