{"id":14970076,"url":"https://github.com/hashicorp/terraform-provider-assert","last_synced_at":"2025-10-19T09:32:41.510Z","repository":{"id":227368061,"uuid":"771212543","full_name":"hashicorp/terraform-provider-assert","owner":"hashicorp","description":"Offers functions to validate and assert values within Terraform configurations, simplifying variable validation and custom conditions.","archived":false,"fork":false,"pushed_at":"2024-09-25T12:28:06.000Z","size":10306,"stargazers_count":33,"open_issues_count":4,"forks_count":7,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-09-27T12:41:52.673Z","etag":null,"topics":["assert","golang","provider","terraform","test"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/hashicorp/assert/latest/docs","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/hashicorp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-12T22:18:50.000Z","updated_at":"2024-09-25T12:28:10.000Z","dependencies_parsed_at":"2024-04-10T03:25:49.628Z","dependency_job_id":"c1f93f82-fca8-471b-8d3f-5a6fec19f28f","html_url":"https://github.com/hashicorp/terraform-provider-assert","commit_stats":{"total_commits":191,"total_committers":7,"mean_commits":"27.285714285714285","dds":"0.17801047120418845","last_synced_commit":"a72766c4702431510d7544a5d680cd0fe288f0db"},"previous_names":["bschaatsbergen/terraform-provider-assert","hashicorp/terraform-provider-assert"],"tags_count":21,"template":false,"template_full_name":"hashicorp/terraform-provider-scaffolding-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Fterraform-provider-assert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Fterraform-provider-assert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Fterraform-provider-assert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Fterraform-provider-assert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashicorp","download_url":"https://codeload.github.com/hashicorp/terraform-provider-assert/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869245,"owners_count":16555572,"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":["assert","golang","provider","terraform","test"],"created_at":"2024-09-24T13:43:00.386Z","updated_at":"2025-10-19T09:32:41.504Z","avatar_url":"https://github.com/hashicorp.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"| :memo:        | This provider is no longer maintained by HashiCorp.       |\n|---------------|:------------------------|\n\n# Terraform Provider: Assert\n\nThe [Assert Terraform provider]((https://registry.terraform.io/providers/hashicorp/assert/latest/docs)) is intended for use when writing [Terraform Tests](https://developer.hashicorp.com/terraform/language/tests), [Variable Validation](https://developer.hashicorp.com/terraform/language/values/variables#custom-validation-rules), [Preconditions and Postconditions](https://developer.hashicorp.com/terraform/language/expressions/custom-conditions#preconditions-and-postconditions), or [Continuous Validation](https://developer.hashicorp.com/terraform/cloud-docs/workspaces/health#continuous-validation). It serves as a way to verify that the values in your Terraform configuration meet specific criteria. The provider only contains functions to assert values, and does not manage any resources.\n\n* [Terraform Registry](https://registry.terraform.io/providers/hashicorp/assert/latest/docs)\n* [Contributor Guide](https://hashicorp.github.io/terraform-provider-assert/)\n\nTo use provider functions, declare the provider as a required provider in your Terraform configuration:\n\n```hcl\nterraform {\n  required_providers {\n    assert = {\n      source = \"hashicorp/assert\"\n    }\n  }\n}\n```\n\n## Continuous Validation\n\nSimplify continuous validation checks that run as part of your Terraform workflow:\n\n```hcl\ndata \"http\" \"terraform_io\" {\n  url = \"https://www.terraform.io\"\n}\n\ncheck \"health_check\" {\n  assert {\n    condition     = provider::assert::http_success(data.http.terraform_io.status_code)\n    error_message = \"${data.http.terraform_io.url} returned an unhealthy status code\"\n  }\n}\n```\n\n## Terraform Test\n\nTest assertions in your Terraform configuration should be simple and easy to read:\n\n```hcl\nrun \"ebs_volume_size\" {\n  command = plan\n  assert {\n    condition     = provider::assert::between(1, 100, aws_ebs_volume.example.size)\n    error_message = \"EBS volume size must be between 1 and 100 GiB\"\n  }\n}\n```\n\n## Variable Validation\n\nWrite simple validation rules for your Terraform variables:\n\n```hcl\nvariable \"ebs_volume_size\" {\n  type = number\n  validation {\n    condition     = provider::assert::between(1, 100, var.ebs_volume_size)\n    error_message = \"EBS volume size must be between 1 and 100 GiB\"\n  }\n}\n```\n\n## Contributing\n\nThis provider is a HashiCorp utility provider, which means any bug fix and feature has to be considered in the context of the thousands/millions of configurations in which this provider is used. This is great as your contribution can have a big positive impact, but we have to assess potential negative impact too (e.g. breaking existing configurations). Stability over features.\n\nTo provide some safety to the wider provider ecosystem, we strictly follow semantic versioning and HashiCorp's own versioning specification. Any changes that could be considered as breaking will only be included as part of a major release. In case multiple breaking changes need to happen, we will group them in the next upcoming major release.\n\nIf you’re looking to contribute, thank you for investing your time and energy into this project! Please make sure you’re familiar with the [HashiCorp Code of Conduct](https://www.hashicorp.com/community-guidelines) and the Assert Provider [Contributor Guide](https://hashicorp.github.io/terraform-provider-assert/).\n\n## License\n\n[Mozilla Public License v2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashicorp%2Fterraform-provider-assert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashicorp%2Fterraform-provider-assert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashicorp%2Fterraform-provider-assert/lists"}