{"id":50148526,"url":"https://github.com/poseidon/terraform-provider-util","last_synced_at":"2026-05-24T07:01:29.238Z","repository":{"id":39284087,"uuid":"410628020","full_name":"poseidon/terraform-provider-util","owner":"poseidon","description":"Terraform provider for special utilities","archived":false,"fork":false,"pushed_at":"2026-05-24T05:25:45.000Z","size":194,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T06:36:51.974Z","etag":null,"topics":["terraform","terraform-provider"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/poseidon/util/latest/docs","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/poseidon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":"DCO","cla":null},"funding":{"github":["poseidon","dghubble"]}},"created_at":"2021-09-26T18:15:46.000Z","updated_at":"2026-05-24T05:25:47.000Z","dependencies_parsed_at":"2023-02-14T20:01:25.396Z","dependency_job_id":"19a87913-e502-41d6-891d-a0ffbd0bfc8d","html_url":"https://github.com/poseidon/terraform-provider-util","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/poseidon/terraform-provider-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon%2Fterraform-provider-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon%2Fterraform-provider-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon%2Fterraform-provider-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon%2Fterraform-provider-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poseidon","download_url":"https://codeload.github.com/poseidon/terraform-provider-util/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poseidon%2Fterraform-provider-util/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33424573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["terraform","terraform-provider"],"created_at":"2026-05-24T07:01:26.286Z","updated_at":"2026-05-24T07:01:29.222Z","avatar_url":"https://github.com/poseidon.png","language":"Go","funding_links":["https://github.com/sponsors/poseidon","https://github.com/sponsors/dghubble"],"categories":[],"sub_categories":[],"readme":"# terraform-provider-util\n[![GoDoc](https://pkg.go.dev/badge/github.com/poseidon/terraform-provider-util.svg)](https://pkg.go.dev/github.com/poseidon/terraform-provider-util)\n[![Workflow](https://github.com/poseidon/terraform-provider-util/actions/workflows/test.yaml/badge.svg)](https://github.com/poseidon/terraform-provider-util/actions/workflows/test.yaml?query=branch%3Amain)\n![Downloads](https://img.shields.io/github/downloads/poseidon/terraform-provider-util/total)\n[![Sponsors](https://img.shields.io/github/sponsors/poseidon?logo=github)](https://github.com/sponsors/poseidon)\n[![Mastodon](https://img.shields.io/badge/follow-news-6364ff?logo=mastodon)](https://fosstodon.org/@poseidon)\n\n`terraform-provider-util` provides some low-level utility functions.\n\n## Usage\n\nConfigure the `util` provider (e.g. `providers.tf`).\n\n```hcl\nprovider \"util\" {}\n\nterraform {\n  required_providers {\n    util = {\n      source  = \"poseidon/util\"\n      version = \"0.4.0\"\n    }\n  }\n}\n```\n\nPerform a set of replacements on content with `replace`.\n\n```hcl\ndata \"util_replace\" \"example\" {\n  content      = \"hello world\"\n  replacements = {\n    \"/(h|H)ello/\": \"Hallo\",\n    \"world\": \"Welt\",\n  }\n}\n\n# Hallo Welt\noutput \"example\" {\n  value = data.ct_replace.example.replaced\n}\n```\n\nConvert a Kubernetes Service Account public key into a JWKS document for OIDC discovery.\n\n```hcl\ndata \"util_jwks\" \"cluster\" {\n  public_key = module.cluster.service_account_public_key\n}\n\noutput \"jwks\" {\n  value = data.util_jwks.cluster.jwks\n}\n```\n\nStore a content value that persists in state until changed to a non-empty value.\n\n```tf\nresource \"util_register\" \"example\" {\n  content = \"a1b2c3\"\n}\n```\n\nLater, the register's content may be updated, but empty values (`null` or `\"\"`) are ignored.\n\n```tf\nresource \"util_register\" \"example\" {\n  content = null\n}\n\noutput \"sha\" {\n  value = util_register.example.value  # \"a1b2c3\"\n}\n```\n\nRun `terraform init` to ensure plugin version requirements are met.\n\n```\n$ terraform init\n```\n\n## Requirements\n\n* Terraform v0.13+ [installed](https://www.terraform.io/downloads.html)\n\n## Development\n\n### Binary\n\nTo develop the provider plugin locally, build an executable with Go v1.18+.\n\n```\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposeidon%2Fterraform-provider-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposeidon%2Fterraform-provider-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposeidon%2Fterraform-provider-util/lists"}