Closed
Description
Describe the bug
There is a minor grammatical mistake / typo when an error message arises during the use of AWS CLI aliases. If a global variable (either --debug or --profile) is included in the alias, you get the following message:
Global parameter "--profile" detected in alias <ALIAS NAME> which is not support in subcommand aliases.
Issue
"support" should be "supported" on line https://github.com/aws/aws-cli/blob/develop/awscli/alias.py#L260
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
The error message should read:
$ aws regions
Global parameter "--profile" detected in alias "regions" which is not supported in subcommand aliases.
Current Behavior
The error message reads:
$ aws regions
Global parameter "--profile" detected in alias "regions" which is not support in subcommand aliases.
Reproduction Steps
- Create the file with a default toplevel section
echo "[toplevel]" > .aws/cli/alias
- Add the following alias (note the
--profile x
):
regions = ec2 describe-regions --profile x --region us-east-1 --query 'Regions[].[RegionName]' --output text
Possible Solution
Updating "support" to "supported" is all that is needed.
Additional Information/Context
The error occurs here: https://github.com/aws/aws-cli/blob/develop/awscli/alias.py#L260
CLI version used
aws-cli/2.23.7
Environment details (OS name and version, etc.)
MacOS Sequoia 15.3