Add tag_bindings to Artifact Registry and Secret Manager modules. (#3220)

* Add `tag_bindings` to Artifact Registry and Secret Manager modules.

* Fix linting

* Fix README
This commit is contained in:
Julio Castillo
2025-07-07 18:21:54 +02:00
committed by GitHub
parent bd21b92504
commit 02a9bdfe2b
6 changed files with 43 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/**
* Copyright 2024 Google LLC
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -217,3 +217,10 @@ resource "google_artifact_registry_repository" "registry" {
}
}
resource "google_tags_location_tag_binding" "binding" {
for_each = var.tag_bindings
parent = "//artifactregistry.googleapis.com/${google_artifact_registry_repository.registry.id}"
location = var.location
tag_value = each.value
}