Nobody enjoys typos, especially ones that make their way into production and cause outages. With CloudTruth you can set a series of rules and typing on your parameters to ensure they meet a specific criteria, or syntax, that meet specific intended values.
Creating Parameter Rules
Rules are set on the parameter itself within a selected project that provide validation of values across all of the parameters environments.
The following are the current rules you can set on your parameters.
Parameter Type
Allowed Rules
String
Minimum Length
Maximum Length
Regular Expression
Integer
Minimum
Maximum
Bool
Boolean Types
We provide a regular expression rule for strings to come up with whatever crafty regex you require.
The Type and Rules can be set during parameter creation or when editing a parameter.
Value typed is shorter than the minimum length
Value is longer than maximum allowed length
When adding rules to an existing parameter, CloudTruth will check across all environments to make sure the existing values conform to the new rule(s). If any of the values do NOT conform to the proposed rule change, the app will display the what and how the rule conflicts. Those conflicts will have to be remediated prior to setting the rule.
Adding a rule to an existing parameter where an environment value does not match the rule
Error message when rule cannot be applied due to an existing value mismatch
The rule type and constraint settings are listed in the parameter's detail page for convenience.