list_ec2_instances
Summarize EC2 instances for one account or across all, grouped with running/stopped tallies. Filter by account or region to assess infrastructure.
Instructions
Summarize EC2 instances — for one account or across all of them.
Convenience view over aws_ec2_instance formatted as
[state] type id name (private_ip), grouped per account with a running/
stopped tally. Omit account_id to sweep every connected account.
Args:
account_id: Internal account id from list_aws_accounts. If omitted,
every connected account is queried.
region: Optional region filter, e.g. "us-east-1".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | ||
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |