Skip to content

Terraform module that will validate that a specified items is within the list of valid items

License

Notifications You must be signed in to change notification settings

plus3it/terraform-null-validate-list-item

Repository files navigation

terraform-null-validate-list-item

Terraform module that will validate that a specified items is within the list of valid items

Testing

Manual testing:

# Replace "xxx" with an actual AWS profile, then execute the integration tests.
export AWS_PROFILE=xxx 
make terraform/pytest PYTEST_ARGS="-v --nomock"

For automated testing, PYTEST_ARGS is optional and no profile is needed:

make mockstack/up
make terraform/pytest PYTEST_ARGS="-v"
make mockstack/clean

Requirements

No requirements.

Providers

Name Version
null n/a

Resources

Name Type

Inputs

Name Description Type Default Required
item Name of item to validate string n/a yes
name Name of the validation test string n/a yes
valid_items List of valid items to validate against list(string) n/a yes

Outputs

Name Description
is_valid Whether the item is valid or not
item The item
valid_items The list of valid items
validation_name The name of this validation

About

Terraform module that will validate that a specified items is within the list of valid items

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published