get_terraform_snippet
Generate Terraform HCL code to remediate a security risk between a source and target asset based on their relationship type.
Instructions
Get Terraform code snippet for a specific remediation.
Args:
source_name: Name of the source asset
target_name: Name of the target asset
relationship_type: Type of relationship (e.g., "CAN_ASSUME", "ALLOWS_TRAFFIC_TO")
snapshot_id: Optional snapshot ID (default: latest)
Returns:
Terraform HCL code snippet for the remediation.
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": {
"source_name": "<source_name>",
"target_name": "<target_name>",
"relationship_type": "<relationship_type>"
},
"name": "get_terraform_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_name | Yes | ||
| target_name | Yes | ||
| relationship_type | Yes | ||
| snapshot_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||