validate_module
Validates a Terraform module directory against FTF standards, checking structure, formatting, required files, and output type references in the Facets control plane.
Instructions
Tool to validate a module directory using FTF CLI.
This tool checks if a Terraform module directory meets the FTF standards. It validates the structure, formatting, required files, and output types of the module. It also checks that all output types referenced in outputs and inputs blocks exist in the Facets control plane.
Args:
module_path (str): The path to the module.
check_only (bool): Flag to only check formatting without applying changes.
skip_terraform_validation_if_provider_not_found (bool): Flag to skip terraform validation during the process - send as true only if you see "Provider configuration not present" while validating.
Returns:
str: A JSON string with the output from the FTF command execution or error message if validation fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_path | Yes | ||
| check_only | No | ||
| skip_terraform_validation_if_provider_not_found | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |