AdministrationSystemTerraformResource Validation

Terraform Resource Validation

ACIOps comes with the validation feature allowing users to validate resource parameters before they are deployed on the infrastructure. This makes sure that the defined input values for resources meets specific conditions, such as naming convention, check for the presence of a specific parameter etc.

You can add validation to your resource by specifying the resource, the parameter and a regular expression that parses the parameter values.

In the example below, a validation has been added for the name of resource aci_application_tenant. An example of the name has been added tenant-coke and a regex ^tenant- that parses that name string to validate it. If the validation passes, the the validation entry could be submitted.

In addition, the Parameter must be present in configuration checkbox has been enabled to also check that the name must be present before the configuration proceed.

Dialog content

All the validations that has been added could be viewed as shown below

Dialog content

When the resource aci_tenant will be configured, ACIOps will check for all validations and would only proceed if all validations passes.