Difference between revisions of "Aws configure"

From wikieduonline
Jump to navigation Jump to search
 
(18 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
https://docs.aws.amazon.com/cli/latest/reference/configure/
+
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>
Line 8: Line 22:
 
* <code>[[aws configure list]]</code>
 
* <code>[[aws configure list]]</code>
 
* <code>[[aws configure sso]]</code>
 
* <code>[[aws configure sso]]</code>
 +
* <code>[[aws configure get]]</code>
 +
* <code>[[aws configure set]]</code>
 
* <code>[[aws configure set]] [[cli_pager]] ""</code>
 
* <code>[[aws configure set]] [[cli_pager]] ""</code>
* <code>[[aws configure get]]</code>
+
 
 +
== Variables ==
 +
[[AWS_ACCESS_KEY_ID]]
 +
[[AWS_SECRET_ACCESS_KEY]]
 +
[[AWS_SESSION_TOKEN]]
  
 
== Example ==
 
== Example ==
 
  aws configure
 
  aws configure
  AWS Access Key ID [None]: YOUR_accesskey
+
  [[AWS Access Key ID]] [None]: YOUR_accesskey
  AWS Secret Access Key [None]: YOUR_secretkey
+
  [[AWS Secret Access Key]] [None]: YOUR_secretkey
 
  Default [[region]] name [None]: us-west-2
 
  Default [[region]] name [None]: us-west-2
 
  Default output format [None]:
 
  Default output format [None]:
  
 
<code>aws configure</code> command will create <code>[[~/.aws/config]]</code> and <code>[[~/.aws/credentials]]</code> files
 
<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 terms ==
 
== Related terms ==
Line 28: Line 51:
 
* <code>[[Region (AWS)]]</code>
 
* <code>[[Region (AWS)]]</code>
 
* <code>[[ca_bundle]]</code>
 
* <code>[[ca_bundle]]</code>
* [[Unable to locate credentials]]
+
* <code>[[Unable to locate credentials]]</code>
 
* <code>[[ecs-cli configure]]</code>
 
* <code>[[ecs-cli configure]]</code>
  

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]

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]

See also[edit]

Advertising: