terraform-provider-validation

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 3 Imported by: 0

README

Terraform Provider Validation

Terraform provides a way to add validation to variables, but you can't use other variables in this validation. This allows you to do complex validation on variables or resource outputs.

Using the provider

This provider has a single validation data source.

terraform {
  required_providers {
    validation = {
      source = "articulate/validation"
    }
  }
}

data "validation" "foo" {
  condition     = var.foo != "" || var.bar != ""
  error_message = "You must set foo or bar."
}

Requirements

Building The Provider

To build for the current system, run make build. If you want to build for all systems, run make all.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

To compile the provider, run make build.

Run the full suite of Acceptance tests, run make testacc.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL