discover_terraform_resources
Discover all Terraform resources in a module directory to identify resources available for import. Returns addresses and count/for_each usage for each resource.
Instructions
Discover all Terraform resources in a module directory. Use this first to see what resources are available for import. Returns list of resources with their addresses and whether they use count/for_each.
Args: module_path (str): Path to the module directory containing Terraform files
Returns: str: JSON with resources list, showing resource_address, has_count, has_for_each for each resource
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |