verify

gordonbondon/verify/common

Terraform Module HCL COMMON

Terraform module to verify resource and data source values

Install

module "verify" {
source = "gordonbondon/verify/common"
version = "1.1.0"
}
⭐ Source on GitHub 📦 Registry page

README

VERIFY terraform module Use this module to verify values from resources during plan. This module has no outputs and does not create any resources. It uses terraform interpolation to check values and bash script to exit with error when they do not pass the verification. If you need to verify just module variables - use terraform built-in validation rules Usage example For more real life examples check ./examples directory ``terraform module "check" { source = "gordonbondon/verify/common" version = "~> 1.0" match = contains(tolist(["a", "b", "c"]), "a") error = "Value must be one of a,b,c" } ` System Requirements * sh shell interpreter Requirements | Name | Version | |------|---------| | terraform | >= 1.0 | | external | >= 1.1.0 | Providers | Name | Version | |------|---------| | external |

Inputs (2)

NameTypeDescriptionDefault
matchboolpass in expression that will evaluate to `true` or `false` required
errorstringerror message to display required

Topics & Tags

terraform-module

Details

FrameworkTerraform Module
LanguageHCL
Version1.1.0
Cloud COMMON
★ Stars6
Forks1
Total downloads9.6k
Inputs2
LicenseMIT
Namespacegordonbondon
Updated