{"id":17802063,"url":"https://github.com/tlkamp/terraform-provider-validation","last_synced_at":"2025-09-22T04:32:30.144Z","repository":{"id":44377219,"uuid":"512216997","full_name":"tlkamp/terraform-provider-validation","owner":"tlkamp","description":"Extended validation for Terraform in the form of a custom provider.","archived":false,"fork":false,"pushed_at":"2024-08-10T17:27:13.000Z","size":65,"stargazers_count":41,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T23:22:05.150Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tlkamp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2022-07-09T15:15:31.000Z","updated_at":"2024-10-14T14:20:05.000Z","dependencies_parsed_at":"2023-12-30T18:29:38.648Z","dependency_job_id":"d4cc874a-6174-4328-b431-c4cf0531241e","html_url":"https://github.com/tlkamp/terraform-provider-validation","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"86966fc07eec474746f23addad711d7a39d69b7b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlkamp%2Fterraform-provider-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlkamp%2Fterraform-provider-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlkamp%2Fterraform-provider-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlkamp%2Fterraform-provider-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tlkamp","download_url":"https://codeload.github.com/tlkamp/terraform-provider-validation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233824413,"owners_count":18736001,"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":["hacktoberfest"],"created_at":"2024-10-27T12:40:36.309Z","updated_at":"2025-09-22T04:32:24.838Z","avatar_url":"https://github.com/tlkamp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Validation Provider\nPerform extended validation on Terraform configurations, at either `plan` or `apply` time.\n\nThis aims to address a core limitation of Terraform: validating multiple variables in the same context.\n\n## Usage\nThis provider requires no configuration.\n\n### Provider\n\n```hcl\nprovider \"validation\" {}\n```\n\n### Resources\n\n#### `validation_error`\nThe `validation_error` resource can be used to evaluate values only known at apply time, and stop an\nin-progress Terraform execution based upon their values.\n\n```hcl\nvariable \"one\" {}\nvariable \"two\" {}\n\nresource \"validation_error\" \"error\" {\n  condition = var.one == var.two\n  summary   = \"var.one and var.two must never be equal\"\n  details   = \u003c\u003cEOF\nWhen var.one and var.two are equal, bad things can happen.\nPlease use differing values for these inputs.\nvar.one: ${var.one}\nvar.two: ${var.two}\nEOF\n}\n```\n\n#### `validation_warning`\nThe `validation_warning` resource can be used to evaluate values only known at apply time. This resource\nwill print a message to the user, but not cause the Terraform execution to fail.\n\nThis can be useful for deprecation notices, etc.\n\n```hcl\nvariable \"one\" {}\nvariable \"two\" {}\n\nresource \"validation_warning\" \"warn\" {\n  condition = var.one == var.two\n  summary   = \"var.one and var.two are equal. This will cause an error in future versions\"\n  details   = \u003c\u003cEOF\nIn a future release of this code, var.one and var.two may no longer be equal. \nPlease consider modifying the values to avoid execution failures.\nvar.one: ${var.one}\nvar.two: ${var.two}\nEOF\n}\n```\n\n### Data Sources\nEach resource above has an accompanying data source, which can be used to show warnings or errors during\nthe plan phase and may not stop an in-progress Terraform execution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlkamp%2Fterraform-provider-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlkamp%2Fterraform-provider-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlkamp%2Fterraform-provider-validation/lists"}