Skip to content

Minor typo in error message when working with aliases #9284

Closed
@scottbrown

Description

@scottbrown

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

  1. Create the file with a default toplevel sectionecho "[toplevel]" > .aws/cli/alias
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions