aws-regions
Retrieves a list of AWS regions.
Syntax
aws-regions
Options
Output fields
| Field | Type | Name | Description |
|---|---|---|---|
| name | string | Name | e.g. us-east-1 |
| description | string | Description | e.g. US East (N. Virginia) |
Error codes
Parse errors
| Error message | Cause | Resolution |
|---|---|---|
| aws-profile-not-found | No AWS connect profile matches the name given in the profile option. | Check the name on Settings > Connect Profiles and specify it again. |
| no-permission | The account running the query is not granted the connect profile. | Ask an administrator to grant the connect profile. |
| use-one-aws-profile | More than one connect profile was given in the profile option. | Specify a single connect profile. |
Description
Retrieves a list of AWS regions.
This command calls no AWS API, so it needs no additional IAM permission.
Examples
Example: List AWS Regions
Situation: A periodic review or an incident investigation needs the result of list aws regions.
Expected result:
| name | description |
|---|---|
| us-east-1 | US East (N. Virginia) |
Interpretation: One record is one queried item. Use aws_profile and region to tell which account and region it came from, then narrow the columns with fields and either export the result or use it as the lookup stage of a detection rule.