Editing $HOME/.aws/config

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-settings
 
 
 
<code>[[.aws/]]config</code>
 
<code>[[.aws/]]config</code>
  
== Examples ==
 
 
  [default]
 
  [default]
  [[region]] = [[us-east-1]]
+
  [[region]] = [[me-south-1]]
  
 
  [default]
 
  [default]
 
  region = [[eu-central-1]]
 
  region = [[eu-central-1]]
 
  output=text
 
  output=text
 
[default]
 
region = [[eu-central-1]]
 
output=text
 
[[cli_pager]]=
 
  
 
  [default]
 
  [default]
Line 21: Line 13:
 
  region = [[us-east-2]]
 
  region = [[us-east-2]]
  
=== Named profiles ===
+
== Related commands ==
* https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
 
 
 
 
 
[profile your_second_profile_name]
 
region=us-east-1
 
output=text
 
 
 
=== [[IAM identity center]] example ===
 
 
 
 
 
{{awsconfig identity}}
 
 
 
== Options ==
 
* <code>[[mfa_serial]]</code>
 
[[cli_auto_prompt]] = on
 
[[cli_pager]], [[aws configure set cli_pager]] ""
 
 
 
== Configuration files ==
 
* <code>[[~/.aws/credentials]]</code>
 
* <code>[[~/.aws/cli/alias]]</code>
 
 
 
== Errors ==
 
* [[Unable to parse config file]]
 
 
 
== Related ==
 
 
* <code>[[aws configure list]]</code> and <code>[[aws configure list-profiles]]</code>
 
* <code>[[aws configure list]]</code> and <code>[[aws configure list-profiles]]</code>
 
* <code>export AWS_DEFAULT_PROFILE=MY_SECOND_ACCOUNT</code>
 
* <code>export AWS_DEFAULT_PROFILE=MY_SECOND_ACCOUNT</code>
 +
* <code>[[aws ec2 describe-instances]]</code>
 +
* <code>[[.aws/credentials]]</code>
 +
* <code>[[~/.aws/cli/alias]]</code>
 
* <code>[[aws list all]]</code>
 
* <code>[[aws list all]]</code>
* <code>[[The config profile]] (yourprofilename) could not be found</code>
+
* [[The config profile]] (yourprofilename) could not be found
* <code>[[aws iam list-virtual-mfa-devices]]</code>
+
* [[mfa_serial]]
* <code>export [[AWS_REGION]]=XXXXX</code>
 
* [[Terraform S3 backend: profile]]
 
* <code>[[~/.kube/config]]</code>
 
  
 
== See also ==
 
== See also ==
* {{aws cli config}}
 
* {{aws configure}}
 
 
* {{aws cli}}
 
* {{aws cli}}
 +
* {{AWS}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: