{"id":18707003,"url":"https://github.com/terraform-google-modules/terraform-google-utils","last_synced_at":"2025-11-09T08:30:32.540Z","repository":{"id":38189395,"uuid":"218842172","full_name":"terraform-google-modules/terraform-google-utils","owner":"terraform-google-modules","description":"Gets the short names for a given Google Cloud region","archived":false,"fork":false,"pushed_at":"2024-12-06T00:48:22.000Z","size":99,"stargazers_count":14,"open_issues_count":2,"forks_count":19,"subscribers_count":16,"default_branch":"main","last_synced_at":"2024-12-28T07:18:12.308Z","etag":null,"topics":["cft-terraform","operations"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/terraform-google-modules/utils/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/terraform-google-modules.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-31T19:15:48.000Z","updated_at":"2024-11-28T05:13:26.000Z","dependencies_parsed_at":"2023-12-29T00:23:36.283Z","dependency_job_id":"839f965b-0e26-417d-9ed0-d3715fa17fb8","html_url":"https://github.com/terraform-google-modules/terraform-google-utils","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-google-modules%2Fterraform-google-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terraform-google-modules","download_url":"https://codeload.github.com/terraform-google-modules/terraform-google-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239571542,"owners_count":19661164,"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"],"created_at":"2024-11-07T12:16:23.281Z","updated_at":"2025-11-09T08:30:32.507Z","avatar_url":"https://github.com/terraform-google-modules.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-google-utils\n\nThis module provides a way to get the shortnames for a given GCP region.\nFor example, \"us-central1\" becomes \"usc1\". This module also always outputs a map for every region, which allows you to do multiple at once.\n\nThis module does not communicate with GCP in any way.\n\n## Usage\n\nBasic usage of this module is as follows:\n\n```hcl\nmodule \"utils\" {\n  source  = \"terraform-google-modules/utils/google\"\n  version = \"~\u003e 0.7\"\n  region  = \"us-central1\"\n}\n\nlocals {\n  \"us-central1\" = module.utils.region_short_name\n  \"asia-east1\"  = module.utils.region_short_name_map[\"asia-east1\"]\n}\n```\n\nThe above results in locals with computed values of:\n\n```\nlocals {\n  \"us-central1\" = \"usc1\"\n  \"asia-east1\"  = \"aze1\"\n}\n```\n\nFunctional examples are included in the\n[examples](./examples/) directory.\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| additional\\_regions | A user-supplied list of regions to extend the lookup map. | `list(string)` | `[]` | no |\n| region | The GCP region to retrieve a short name for (ex. `us-central1).` | `string` | `null` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| region\\_short\\_name | The 4 or 5 character shortname of the region specified in var.region. |\n| region\\_short\\_name\\_map | The 4 or 5 character shortname of any given region. |\n\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\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.12, \u003c v0.14\n\n### Service Account\n\nA service account is not needed for to use this module.\n\n### APIs\n\nProjects/APIs are not required to use this module.\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-google-modules%2Fterraform-google-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterraform-google-modules%2Fterraform-google-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-google-modules%2Fterraform-google-utils/lists"}