cloud-foundation-fabric/modules/source-repository/README.md

39 lines
1019 B
Markdown
Raw Normal View History

# 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
```
<!-- BEGIN TFDOC -->
## Variables
| name | description | type | required | default |
|---|---|:---:|:---:|:---:|
2022-01-22 04:34:35 -08:00
| [name](variables.tf#L23) | Repository name. | <code>string</code> | ✓ | |
| [project_id](variables.tf#L28) | Project used for resources. | <code>string</code> | ✓ | |
| [iam](variables.tf#L17) | IAM bindings in {ROLE => [MEMBERS]} format. | <code>map&#40;list&#40;string&#41;&#41;</code> | | <code>&#123;&#125;</code> |
## Outputs
| name | description | sensitive |
|---|---|:---:|
2022-01-22 04:34:35 -08:00
| [id](outputs.tf#L17) | Repository id. | |
| [url](outputs.tf#L22) | Repository URL. | |
<!-- END TFDOC -->