Difference between revisions of "Aws configure"
Jump to navigation
Jump to search
(36 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
+ | https://awscli.amazonaws.com/v2/documentation/api/latest/reference/configure/index.html | ||
+ | == Commands == | ||
+ | [[aws configure --profile]] your-new-profile-name | ||
+ | [[aws configure add-model]] | ||
+ | [[aws configure get]] | ||
+ | [[aws configure set]] | ||
+ | [[aws configure set cli_pager]] | ||
+ | [[aws configure import]] | ||
+ | [[aws configure list]] | ||
+ | [[aws configure list-profiles]] | ||
+ | [[aws configure sso]] | ||
+ | [[aws configure sso-session]] | ||
+ | [[aws configure export-credentials]] | ||
+ | == Examples == | ||
* <code>[[AWS CLI|aws]] configure</code> | * <code>[[AWS CLI|aws]] configure</code> | ||
* <code>[[aws configure --profile]] your-new-profile-name</code> | * <code>[[aws configure --profile]] your-new-profile-name</code> | ||
+ | * <code>[[aws configure --profile my-read-only]]</code> | ||
+ | * <code>[[aws configure list-profiles]]</code> (<code>aws</code> >= 2.x) | ||
+ | * <code>[[aws configure list]]</code> | ||
+ | * <code>[[aws configure sso]]</code> | ||
+ | * <code>[[aws configure get]]</code> | ||
+ | * <code>[[aws configure set]]</code> | ||
+ | * <code>[[aws configure set]] [[cli_pager]] ""</code> | ||
− | + | == Variables == | |
+ | [[AWS_ACCESS_KEY_ID]] | ||
+ | [[AWS_SECRET_ACCESS_KEY]] | ||
+ | [[AWS_SESSION_TOKEN]] | ||
− | + | == Example == | |
+ | aws configure | ||
+ | [[AWS Access Key ID]] [None]: YOUR_accesskey | ||
+ | [[AWS Secret Access Key]] [None]: YOUR_secretkey | ||
+ | Default [[region]] name [None]: us-west-2 | ||
+ | Default output format [None]: | ||
+ | <code>aws configure</code> command will create <code>[[~/.aws/config]]</code> and <code>[[~/.aws/credentials]]</code> files | ||
+ | == Error == | ||
+ | * <code>[[An error occurred (ExpiredTokenException) when calling the]]</code> | ||
− | == Related | + | == Related terms == |
+ | * Config files: <code>[[.aws/config]]</code>, <code>[[.aws/credentials]]</code> | ||
* <code>[[aws configure list]]</code> | * <code>[[aws configure list]]</code> | ||
* <code>[[aws iam list-users]]</code>, <code>[[aws iam get-user]]</code> | * <code>[[aws iam list-users]]</code>, <code>[[aws iam get-user]]</code> | ||
− | |||
* <code>[[export]] [[AWS_PROFILE]]=your_defined_profile</code> | * <code>[[export]] [[AWS_PROFILE]]=your_defined_profile</code> | ||
* <code>[[suaws]]</code> bash function | * <code>[[suaws]]</code> bash function | ||
* <code>[[Region (AWS)]]</code> | * <code>[[Region (AWS)]]</code> | ||
+ | * <code>[[ca_bundle]]</code> | ||
+ | * <code>[[Unable to locate credentials]]</code> | ||
+ | * <code>[[ecs-cli configure]]</code> | ||
== See also == | == See also == | ||
− | * {{aws cli}} | + | * {{aws cli config}} |
− | * {{ | + | * {{aws configure}} |
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 09:26, 29 February 2024
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/configure/index.html
Commands[edit]
aws configure --profile your-new-profile-name aws configure add-model aws configure get aws configure set aws configure set cli_pager aws configure import aws configure list aws configure list-profiles aws configure sso aws configure sso-session aws configure export-credentials
Examples[edit]
aws configure
aws configure --profile your-new-profile-name
aws configure --profile my-read-only
aws configure list-profiles
(aws
>= 2.x)aws configure list
aws configure sso
aws configure get
aws configure set
aws configure set cli_pager ""
Variables[edit]
AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN
Example[edit]
aws configure AWS Access Key ID [None]: YOUR_accesskey AWS Secret Access Key [None]: YOUR_secretkey Default region name [None]: us-west-2 Default output format [None]:
aws configure
command will create ~/.aws/config
and ~/.aws/credentials
files
Error[edit]
Related terms[edit]
- Config files:
.aws/config
,.aws/credentials
aws configure list
aws iam list-users
,aws iam get-user
export AWS_PROFILE=your_defined_profile
suaws
bash functionRegion (AWS)
ca_bundle
Unable to locate credentials
ecs-cli configure
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: