Generate Infrastructure as Code
generate-iacGenerate Terraform or OpenTofu code for your cloud resources. Submit resource IDs and get a job ID to track progress.
Instructions
Generate Infrastructure as Code (IaC) for cloud resources. This tool initiates a long-running job and returns a job ID for tracking progress.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cloudResourceIds": "<cloudResourceIds>",
"iacType": "<iacType>"
},
"name": "generate-iac"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iacType | Yes | Type of IaC to generate | |
| cloudResourceIds | Yes | Array of cloud resource IDs to generate IaC for, use get-cloud-resources to find ids |