Least-privilege IAM deploy policy
iam_policyGenerate a least-privilege IAM policy in JSON for deploying infrastructure-as-code and review it for privilege-escalation risks.
Instructions
Least-privilege IAM policy (JSON) with the actions needed to deploy an infrastructure-as-code input, plus a privilege-escalation review. On Free the Resource is "*"; Roots scopes it to the declared ARNs.
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": {
"path": "<path>"
},
"name": "iam_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Infrastructure to generate the deploy policy for. | |
| plan_path | No | Optional terraform show -json plan file for real resolved values. | |
| state_path | No | Optional .tfstate overlay for real identifiers (more precise ARNs on Roots). |