--- page_title: check block reference for the Terraform configuration language description: How to use the `check` block to validate infrastructure outside of the usual resource lifecycle. # START AUTO GENERATED METADATA, DO NOT EDIT created_at: 2025-11-19T19:11:19Z last_modified: 2025-11-19T19:11:19Z # END AUTO GENERATED METADATA --- # `check` block reference Use the `check` block to validate your infrastructure outside of the typical resource lifecycle. Terraform executes the `check` block as the last step of plan or apply operation, after Terraform has planned or provisioned your infrastructure. When a `check` block's assertion fails, Terraform reports a warning and continues executing the current operation. ## Background Terraform evaluates `check` blocks locally whenever you plan or apply your configuration. In HCP Terraform, you can enable health checks on a workspace to automatically and continuously execute checks defined in that workspace's configuration. Refer to [Continuous validation](/terraform/cloud-docs/workspaces/health#continuous-validation) for details. The `check` block is one of the ways you can validate your configuration. Checks contain assertions, which specify the condition that Terraform is verifying during that check. Other validations run during other stages of a Terraform operation, and can block operations if they fail. The `check` block is the only validation that does not block operations, if a `check` block's assertion fails, Terraform reports a warning and continues executing the current operation. For information on all of the ways to validation configuration in Terraform, refer to [Validate your configuration](/terraform/language/validate#input-variable-validation). ## Configuration model The `check` block supports the following arguments: - [`check "