Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tlkamp/terraform-provider-validation

Extended validation for Terraform in the form of a custom provider.
https://github.com/tlkamp/terraform-provider-validation

hacktoberfest

Last synced: 11 days ago
JSON representation

Extended validation for Terraform in the form of a custom provider.

Awesome Lists containing this project

README

        

# Validation Provider
Perform extended validation on Terraform configurations, at either `plan` or `apply` time.

This aims to address a core limitation of Terraform: validating multiple variables in the same context.

## Usage
This provider requires no configuration.

### Provider

```hcl
provider "validation" {}
```

### Resources

#### `validation_error`
The `validation_error` resource can be used to evaluate values only known at apply time, and stop an
in-progress Terraform execution based upon their values.

```hcl
variable "one" {}
variable "two" {}

resource "validation_error" "error" {
condition = var.one == var.two
summary = "var.one and var.two must never be equal"
details = <