Difference between revisions of "$AWS PROFILE"
Jump to navigation
Jump to search
(28 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | * <code>[[export]] [[AWS_PROFILE]]=your_defined_profile && echo $AWS_PROFILE</code> | ||
+ | * <code>export [[PS1]]='[\u@\h $AWS_PROFILE]\$ '</code> | ||
+ | * <code>[[suaws]]</code> function | ||
− | * <code>[[ | + | === Windows === |
− | + | * <code>[[set]] [[AWS_DEFAULT_PROFILE]]=yourprofile</code> | |
+ | == Errors == | ||
+ | * <code>[[Unable to locate credentials. You can configure credentials by running aws configure]]</code> | ||
+ | * <code>[[An error occurred (ExpiredToken) when calling the ListBuckets operation: The provided token has expired.]]</code> | ||
== Related terms == | == Related terms == | ||
− | * [[Aws cli environmental variables]] | + | * <code>[[AWS_DEFAULT_PROFILE]]</code> |
+ | * [[Aws cli environmental variables]]: <code>[[AWS_ACCESS_KEY_ID]] </code>, <code>[[AWS_SESSION_TOKEN]]</code>, <code>[[AWS_REGION]]</code> | ||
* <code>[[.bash_profile]]</code> | * <code>[[.bash_profile]]</code> | ||
− | * <code>[[ | + | * <code>[[~/.aws/config]]</code>, <code>[[~/.aws/credentials]]</code> |
* <code>[[AWS_CLI_AUTO_PROMPT]]</code> | * <code>[[AWS_CLI_AUTO_PROMPT]]</code> | ||
− | |||
* [[AWS region]]: <code>[[AWS_DEFAULT_REGION]]</code> | * [[AWS region]]: <code>[[AWS_DEFAULT_REGION]]</code> | ||
− | * <code>[[ | + | * <code>[[~/.kube/config]]</code> K8s configuration file use <code>[[AWS_PROFILE]]</code> as <code>[[env:]]</code> variable |
− | * [[ | + | * <code>[[aws --profile]]</code> |
== See also == | == See also == | ||
+ | * {{aws cli config}} | ||
* {{aws configure}} | * {{aws configure}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 14:59, 25 June 2024
export AWS_PROFILE=your_defined_profile && echo $AWS_PROFILE
export PS1='[\u@\h $AWS_PROFILE]\$ '
suaws
function
Contents
Windows[edit]
set AWS_DEFAULT_PROFILE=yourprofile
Errors[edit]
Unable to locate credentials. You can configure credentials by running aws configure
An error occurred (ExpiredToken) when calling the ListBuckets operation: The provided token has expired.
Related terms[edit]
AWS_DEFAULT_PROFILE
- Aws cli environmental variables:
AWS_ACCESS_KEY_ID
,AWS_SESSION_TOKEN
,AWS_REGION
.bash_profile
~/.aws/config
,~/.aws/credentials
AWS_CLI_AUTO_PROMPT
- AWS region:
AWS_DEFAULT_REGION
~/.kube/config
K8s configuration file useAWS_PROFILE
asenv:
variableaws --profile
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: