awsdocs / iam-user-guide

Official documentation source for the AWS Identity and Access Management (IAM) User Guide
MIT No Attribution
325 stars 355 forks source link

Session tags page uses non-standard ASCII dashes #199

Closed richard-mck closed 4 years ago

richard-mck commented 4 years ago

On the page session tags, some of the tag CLI references use non-standard ASCII dashes which cause an error when copying and pasting locally.

For example in this block from the page;

aws sts assume-role \
--role-arn arn:aws:iam::123456789012:role/Role1 \
--role-session-name Session1 \
–-tags Key=Star,Value=1 Key=Heart,Value=1 \
--transitive-tag-keys Star Heart

The first dash on –-tags is actually ASCII character U+00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX character (â) instead of U+002D HYPHEN-MINUS character (-).

When pasted into CLI this results in the following error:

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help

Unknown options: Key=Star,Value=1, –-tags

Obviously ideally a user should retype commands for security but on occasion copy and paste is faster and easier.

bonniekeller commented 4 years ago

Thanks for reporting this. I will fix this and publish an update as soon as possible. ETA week of 7/20 due to publishing cadence.

bonniekeller commented 4 years ago

Thanks again for reporting this, the fix is live in the documentation.