s3_generate_policy
Generate least-privilege S3 bucket policies for public-read, private, cross-account, or CloudFront OAI access. Specify bucket name, access type, and optional principals to produce a policy.
Instructions
Generate S3 bucket policies with least-privilege access controls
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": {
"bucket_name": "<bucket_name>",
"access_type": "<access_type>"
},
"name": "s3_generate_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for authentication | |
| principals | No | AWS account IDs or ARNs for cross-account access | |
| access_type | Yes | Access pattern type | |
| bucket_name | Yes | S3 bucket name |