aws_query
Execute a single AWS API operation across selected accounts and regions, following pagination automatically and returning merged results.
Instructions
Run one AWS API call across every account a selector resolves to.
``service``/``operation``/``params`` follow the AWS CLI and botocore shape,
e.g. ``service="ec2"``, ``operation="DescribeInstances"``,
``params={"Filters": [{"Name": "instance-state-name", "Values": ["stopped"]}]}``.
Paginated operations are followed to completion automatically, so results
are complete rather than a silent first page. If a result is truncated,
raise ``max_items`` to collect more from each account.
``region`` is always required and never defaulted. Account selectors decide
which accounts are touched; with none given, every account in the active org
is targeted, subject to the configured blast-radius cap. The model never
picks which IAM role to assume - pass ``role=`` to override the
deterministic TOML/sole-grant resolution.
Any operation the assumed role may perform is dispatched - reads, writes,
deletes, secret reads, all of it - with AWS IAM as the sole authorization
boundary. Nothing is refused locally; if the role lacks permission, AWS
returns AccessDenied and that is what comes back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | ||
| orgs | No | ||
| role | No | ||
| params | No | ||
| region | Yes | ||
| service | Yes | ||
| max_items | No | ||
| operation | Yes | ||
| account_id | No | ||
| account_ids | No | ||
| environment | No | ||
| account_name | No | ||
| max_accounts | No | ||
| account_names | No | ||
| name_contains | No | ||
| exclude_account_ids | No | ||
| exclude_account_names | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||