Terraform Plugin Framework Validators banner
hashicorp hashicorp

Terraform Plugin Framework Validators

DevOps community

Description

Common Use Case Validators for terraform-plugin-framework

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

[![PkgGoDev](https://pkg.go.dev/badge/github.com/hashicorp/terraform-plugin-framework-validators)](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework-validators)

Terraform Plugin Framework Validators

terraform-plugin-framework-validators is a Go module containing common use case validators for [terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework) types. It aims to provide generic type validator functionality that should be applicable to the broader framework-based provider ecosystem.

This Go module is not intended to define all possible validations. In particular, many validators that relate to specific string formats, encodings, and other specifics should instead be implemented separately in custom attribute types (e.g. a type implementing the `attr.TypeWithValidators` interface). Many of these custom types can be discovered by a conventional repository naming prefix of `terraform-plugin-framework-`. HashiCorp-supported custom types available for specific use cases include but are not limited to:

Terraform Plugin Framework Compatibility

This Go module is typically kept up to date with the latest `terraform-plugin-framework` releases to ensure all validator functionality is available.

Go Compatibility

This Go module follows `terraform-plugin-framework` Go compatibility.

Currently that means Go **1.25** must be used when developing and testing code.

Contributing

See [`.github/CONTRIBUTING.md`](https://github.com/hashicorp/terraform-plugin-framework-validators/blob/main/.github/CONTRIBUTING.md)

License

[Mozilla Public License v2.0](https://github.com/hashicorp/terraform-plugin-framework-validators/blob/main/LICENSE)