{"id":13491170,"url":"https://github.com/GoogleCloudPlatform/terraform-google-tags","last_synced_at":"2025-03-28T08:32:35.419Z","repository":{"id":203852870,"uuid":"667988462","full_name":"GoogleCloudPlatform/terraform-google-tags","owner":"GoogleCloudPlatform","description":"Create and manage Google Cloud Tags","archived":false,"fork":false,"pushed_at":"2024-10-25T16:29:56.000Z","size":101,"stargazers_count":6,"open_issues_count":5,"forks_count":3,"subscribers_count":15,"default_branch":"main","last_synced_at":"2024-10-29T18:21:59.840Z","etag":null,"topics":["cft-terraform","operations","security-identity"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/GoogleCloudPlatform/tags/google","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoogleCloudPlatform.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-18T18:57:03.000Z","updated_at":"2024-10-25T16:29:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"12eab0ec-5f4a-46d3-9b65-0cc31cb18318","html_url":"https://github.com/GoogleCloudPlatform/terraform-google-tags","commit_stats":null,"previous_names":["googlecloudplatform/terraform-google-tags"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fterraform-google-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fterraform-google-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fterraform-google-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fterraform-google-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoogleCloudPlatform","download_url":"https://codeload.github.com/GoogleCloudPlatform/terraform-google-tags/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222364093,"owners_count":16972422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cft-terraform","operations","security-identity"],"created_at":"2024-07-31T19:00:54.227Z","updated_at":"2024-10-31T05:30:17.774Z","avatar_url":"https://github.com/GoogleCloudPlatform.png","language":"HCL","funding_links":[],"categories":["HCL"],"sub_categories":[],"readme":"# terraform-google-tags\n\n## Description\nThis Terraform module makes it easier to create [tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview) and bind them to [different resources/services](https://cloud.google.com/resource-manager/docs/tags/tags-supported-services) for your Google Cloud environment.\n\n\n## Usage\n\nBasic usage of this module is as follows:\n\n```hcl\nmodule \"tags\" {\n  source  = \"GoogleCloudPlatform/tags/google\"\n  version = \"~\u003e 0.1\"\n\n  tag_for         = \"project\"\n  project_number  = \"9999999999999\"\n  key             = \"key1\"\n  key_description = \"first key\"\n  value_specs = [{\n    value       = \"value1\"\n    description = \"first value\"\n    tag_binding = { \"global\" : [\"//cloudresourcemanager.googleapis.com/projects/99999999999\"],\n                    \"us-central1\" : [\"//run.googleapis.com/projects/9999999999999/locations/us-central1/services/hello1\"] }\n    }, {\n    value       = \"value2\"\n    description = \"second value\"\n    tag_binding = { \"us-central1\" : [\"//run.googleapis.com/projects/9999999999999/locations/us-central1/services/hello1\"] }\n    }, {\n    value       = \"value3\"\n    description = \"third value\"\n    tag_binding = {}\n    }\n  ]\n}\n```\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| key | Key for Tags | `string` | n/a | yes |\n| key\\_description | Description for the Key | `string` | `\"\"` | no |\n| key\\_purpose | Purpose specification for the Key | `string` | `\"\"` | no |\n| key\\_purpose\\_data | Purpose Data specification for the key | `map(string)` | `{}` | no |\n| org\\_id | Organization ID | `string` | `\"\"` | no |\n| project\\_number | Project Number | `string` | `\"\"` | no |\n| tag\\_for | Tags Created for organization or project | `string` | `\"organization\"` | no |\n| value\\_specs | Value specifications | \u003cpre\u003elist(object({\u003cbr\u003e    value       = string\u003cbr\u003e    description = string\u003cbr\u003e    tag_binding = map(list(string))\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| key\\_id | Key ID |\n| key\\_name | Key Name |\n| key\\_namespaced\\_name | Key Namespaced Name |\n| tag\\_binding\\_ids | List of Tag Binding Ids |\n| tag\\_binding\\_location\\_ids | List of Tag Binding Location Ids |\n| tag\\_binding\\_location\\_names | List of Tag Binding Location Names |\n| tag\\_binding\\_names | List of Tag Binding Names |\n| value\\_ids | List of Value Ids |\n| value\\_names | List of Value Names |\n| value\\_namespaced\\_names | List of Value Namespaced Names |\n\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n\n## TAGs IAM\n\nUse TAGs IAM modules [tag_keys](https://github.com/terraform-google-modules/terraform-google-iam/tree/master/modules/tag_keys_iam) and [tag_values](https://github.com/terraform-google-modules/terraform-google-iam/blob/master/modules/tag_values_iam) for IAM bindings.\n\n## Requirements\n\nThese sections describe requirements for using this module.\n\n### Software\n\nThe following dependencies must be available:\n\n- [Terraform][terraform] \u003e=v0.13\n- [Terraform Provider for GCP][terraform-provider-gcp] ~\u003e 4.0\n\n### APIs\n\nAPIs to enabled:\n- Resource Manager API: `cloudresourcemanager.googleapis.com`\n\n## Contributing\n\nRefer to the [contribution guidelines](./CONTRIBUTING.md) for\ninformation on contributing to this module.\n\n[iam-module]: https://registry.terraform.io/modules/terraform-google-modules/iam/google\n[project-factory-module]: https://registry.terraform.io/modules/terraform-google-modules/project-factory/google\n[terraform-provider-gcp]: https://www.terraform.io/docs/providers/google/index.html\n[terraform]: https://www.terraform.io/downloads.html\n\n## Security Disclosures\n\nPlease see our [security disclosure process](./SECURITY.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleCloudPlatform%2Fterraform-google-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGoogleCloudPlatform%2Fterraform-google-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleCloudPlatform%2Fterraform-google-tags/lists"}