Files
hunfabric/modules/container-registry
Julio Castillo 8a2320311d Add bucket_create to modules/gcs (#2827)
* Add `bucket_create` to `modules/gcs`

* Create local with bucket name

* Update variable description

* Fix bucket output

* Fix tests

* Fix tests

* Bump OpenTofu to 1.9.0 (needed for multi-var validations)
2025-01-21 23:48:36 +01:00
..
2025-01-10 16:56:01 +01:00

Google Cloud Container Registry Module

This module simplifies the creation of GCS buckets used by Google Container Registry.

Example

module "container_registry" {
  source     = "./fabric/modules/container-registry"
  project_id = "myproject"
  location   = "EU"
  iam = {
    "roles/storage.admin" = ["group:cicd@example.com"]
  }
}
# tftest modules=1 resources=2 inventory=simple.yaml

Variables

name description type required default
location Registry location. Can be US, EU, ASIA or empty. string
project_id Registry project id. string
iam IAM bindings for topic in {ROLE => [MEMBERS]} format. map(list(string)) {}

Outputs

name description sensitive
id Fully qualified id of the registry bucket.