test_already_previewed_module
Test a previously previewed module by deploying it to a target project using terraform apply, after validating project existence and preview module support.
Instructions
Test a module that has been previewed by asking the user for the project_name where it needs to be tested.
This tool checks if the project exists, verifies if it supports preview modules, and then does terraform apply. You can check logs for the apply using get_deployment_logs, and check the status of the deployment using check_deployment_status.
Args: project_name (str): The name of the test project (stack) to deploy to intent (str): The intent of the module to deploy flavor (str): The flavor of the module to deploy version (str): The version of the module to deploy environment_name (str, optional): The specific environment name to deploy to. Provide this only if the user has asked you to.
Returns: str: Result of the deployment operation as a JSON string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | ||
| intent | Yes | ||
| flavor | Yes | ||
| version | Yes | ||
| environment_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |