Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tags in project output. #2062

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |
<!-- END TFDOC -->
17 changes: 17 additions & 0 deletions modules/project/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Loading