1.2 KiB
1.2 KiB
Google Cloud Container Registry Module
This module simplifies the creation of GCS buckets used by Google Container Registry.
Example
module "container_registry" {
source = "../../modules/container-registry"
project_id = "myproject"
location = "EU"
iam_roles = ["roles/storage.admin"]
iam_members = {
"roles/storage.admin" = ["group:cicd@example.com"]
}
}
Variables
| name | description | type | required | default |
|---|---|---|---|---|
| project_id | Registry project id. | string |
✓ | |
| iam_members | Map of member lists used to set authoritative bindings, keyed by role. | map(list(string)) |
null |
|
| iam_roles | List of roles used to set authoritative bindings. | list(string) |
null |
|
| location | Bucket location. Can be US, EU, ASIA or empty | string |
|
Outputs
| name | description | sensitive |
|---|---|---|
| bucket_id | ID of the GCS bucket created |