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

37 lines
938 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 e = "./modules/source-repository"
project_id = "my-project"
name = "my-repo"
iam = {
"roles/source.reader" = ["user:foo@example.com"]
}
}
```
<!-- BEGIN TFDOC -->
## Variables
| name | description | type | required | default |
|---|---|:---: |:---:|:---:|
| name | Repository name. | <code title="">string</code> | ✓ | |
| project_id | Project used for resources. | <code title="">string</code> | ✓ | |
| *iam* | IAM bindings in {ROLE => [MEMBERS]} format. | <code title="map&#40;list&#40;string&#41;&#41;">map(list(string))</code> | | <code title="">{}</code> |
## Outputs
| name | description | sensitive |
|---|---|:---:|
| id | Repository id. | |
| url | Repository URL. | |
<!-- END TFDOC -->