diff --git a/modules/project/README.md b/modules/project/README.md index 588b36da73..efd6dcc24b 100644 --- a/modules/project/README.md +++ b/modules/project/README.md @@ -1028,4 +1028,6 @@ module "bucket" { | [service_accounts](outputs.tf#L96) | Product robot service accounts in project. | | | [services](outputs.tf#L112) | Service APIs to enabled in the project. | | | [sink_writer_identities](outputs.tf#L121) | Writer identities created for each sink. | | +| [tag_keys](outputs.tf#L128) | Tag key resources. | | +| [tag_values](outputs.tf#L137) | Tag value resources. | | diff --git a/modules/project/outputs.tf b/modules/project/outputs.tf index 332a956e59..178e832e72 100644 --- a/modules/project/outputs.tf +++ b/modules/project/outputs.tf @@ -124,3 +124,20 @@ output "sink_writer_identities" { for name, sink in google_logging_project_sink.sink : name => sink.writer_identity } } + +output "tag_keys" { + description = "Tag key resources." + value = { + for k, v in google_tags_tag_key.default : k => v if( + v.purpose == null || v.purpose == "" + ) + } +} + +output "tag_values" { + description = "Tag value resources." + value = { + for k, v in google_tags_tag_value.default : + k => v if !local.tag_values[k].tag_network + } +}