2020-05-25 22:18:33 -07:00
|
|
|
# Google Cloud Container Registry Module
|
|
|
|
|
|
|
|
This module simplifies the creation of GCS buckets used by Google Container Registry.
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
module "container_registry" {
|
2020-11-07 01:28:33 -08:00
|
|
|
source = "./modules/container-registry"
|
2020-05-25 22:18:33 -07:00
|
|
|
project_id = "myproject"
|
|
|
|
location = "EU"
|
2020-11-05 23:22:35 -08:00
|
|
|
iam = {
|
2020-05-25 22:18:33 -07:00
|
|
|
"roles/storage.admin" = ["group:cicd@example.com"]
|
|
|
|
}
|
|
|
|
}
|
2022-01-28 11:15:35 -08:00
|
|
|
# tftest modules=1 resources=2
|
2020-05-25 22:18:33 -07:00
|
|
|
```
|
|
|
|
<!-- BEGIN TFDOC -->
|
2021-12-20 23:51:51 -08:00
|
|
|
|
2020-05-25 22:18:33 -07:00
|
|
|
## Variables
|
|
|
|
|
|
|
|
| name | description | type | required | default |
|
2021-12-20 23:51:51 -08:00
|
|
|
|---|---|:---:|:---:|:---:|
|
2022-01-22 04:34:35 -08:00
|
|
|
| [project_id](variables.tf#L29) | Registry project id. | <code>string</code> | ✓ | |
|
|
|
|
| [iam](variables.tf#L17) | IAM bindings for topic in {ROLE => [MEMBERS]} format. | <code>map(list(string))</code> | | <code>{}</code> |
|
2022-01-31 01:45:34 -08:00
|
|
|
| [location](variables.tf#L23) | Registry location. Can be US, EU, ASIA or empty. | <code>string</code> | | <code>""</code> |
|
2020-05-25 22:18:33 -07:00
|
|
|
|
|
|
|
## Outputs
|
|
|
|
|
|
|
|
| name | description | sensitive |
|
|
|
|
|---|---|:---:|
|
2022-01-31 01:45:34 -08:00
|
|
|
| [bucket_id](outputs.tf#L17) | ID of the GCS bucket created. | |
|
2021-12-20 23:51:51 -08:00
|
|
|
|
2020-05-25 22:18:33 -07:00
|
|
|
<!-- END TFDOC -->
|