get_terraform_snippet
Generate Terraform HCL code snippets to remediate security vulnerabilities by fixing relationships between AWS assets, using graph-based attack path analysis.
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.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_name | Yes | ||
| target_name | Yes | ||
| relationship_type | Yes | ||
| snapshot_id | No |