Difference between revisions of "~/.aws/cli/alias"
Jump to navigation
Jump to search
(Created page with " ~/.aws/cli/alias == See also == * {{AWS CLI}} Category:AWS") |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | * https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-alias.html | |
+ | [[~/.aws/cli/]]alias | ||
+ | [[mkdir -p]] [[~/.aws/cli/]] && touch ~/.aws/cli/alias | ||
+ | |||
+ | Define your alias: | ||
+ | whoami = [[sts get-caller-identity]] | ||
+ | Use it: | ||
+ | aws whoami | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[alias]]</code> | ||
== See also == | == See also == | ||
− | * {{ | + | * {{aws cli configuration files}} |
+ | * {{aws configure}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 19:16, 22 June 2022
~/.aws/cli/alias
mkdir -p ~/.aws/cli/ && touch ~/.aws/cli/alias
Define your alias:
whoami = sts get-caller-identity
Use it:
aws whoami
Related[edit]
See also[edit]
- AWS CLI: environmental variables,
aws configure, ~/.aws/config
,~/.aws/credentials
,~/.aws/cli/alias, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
aws configure [ list-profiles | sso | sso-session | set ]
,~/.aws/config
,.aws/credentials
,mfa_serial
, AWS cli environmental variables:AWS_PROFILE
,AWS_REGION, AWS_DEFAULT_REGION, AWS_SESSION_TOKEN, AWS_ROLE_SESSION_NAME
,.aws/
, AWS functions,--profile, viawsconfig, viawscredentials
Advertising: