Merge pull request #31953 from hashicorp/add-cont-valid-callout

Add callout to Continuous Validation
This commit is contained in:
Laura Pacilio 2022-10-06 11:58:29 -04:00 committed by GitHub
commit e60bfc0b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,10 @@ Preconditions can serve a symmetrical purpose to input variable `validation` blo
Terraform evaluates output value preconditions before evaluating the `value` expression to finalize the result. Preconditions can take precedence over potential errors in the `value` expression.
### Continuous Validation in Terraform Cloud
Terraform Cloud can automatically check whether the preconditions and postconditions in a workspaces configuration continue to pass after Terraform provisions the infrastructure. For example, you can write a `postcondition` to check whether an API gateway certificate is valid. Continuous validation alerts you when the condition fails, so you can update the certificate and avoid errors the next time you want to update your infrastructure. Refer to [Continuous Validation](/cloud-docs/workspaces/health#continuous-validation) in the Terraform Cloud documentation for details.
### Examples
The following example shows use cases for preconditions and postconditions. The preconditions and postconditions declare the following assumptions and guarantees.