Difference between revisions of "$HOME/.aws/config"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
  region = [[eu-central-1]]
 
  region = [[eu-central-1]]
 
  output=text
 
  output=text
 +
 +
[default]
 +
region = [[eu-central-1]]
 +
output=text
 +
[[cli_pager]]=
  
 
  [default]
 
  [default]
Line 25: Line 30:
  
 
=== [[IAM identity center]] example ===
 
=== [[IAM identity center]] example ===
[profile AdministratorAccess-452850246549]
+
 
sso_session = your-username
+
 
sso_account_id = 123456789
+
  {{awsconfig identity}}
sso_role_name = AdministratorAccess
 
region = us-east-1
 
output = json
 
[sso-session your-username]
 
sso_start_url = https://d-123456789.[[awsapps.com]]/start
 
sso_region = us-east-1
 
  sso_registration_scopes = [[sso:account:access]]
 
  
 
== Options ==
 
== Options ==
 
* <code>[[mfa_serial]]</code>
 
* <code>[[mfa_serial]]</code>
[[cli_auto_prompt]] = on
+
* <code>[[cli_auto_prompt]] = on</code>
[[cli_pager]], [[aws configure set cli_pager]] ""
+
* <code>[[cli_pager]], [[aws configure set cli_pager]] ""</code>
  
 
== Configuration files ==
 
== Configuration files ==
 
* <code>[[~/.aws/credentials]]</code>
 
* <code>[[~/.aws/credentials]]</code>
 
* <code>[[~/.aws/cli/alias]]</code>
 
* <code>[[~/.aws/cli/alias]]</code>
 +
 +
== Errors ==
 +
* <code>[[Unable to parse config file]]</code>
  
 
== Related ==
 
== Related ==
Line 52: Line 53:
 
* <code>[[aws iam list-virtual-mfa-devices]]</code>
 
* <code>[[aws iam list-virtual-mfa-devices]]</code>
 
* <code>export [[AWS_REGION]]=XXXXX</code>
 
* <code>export [[AWS_REGION]]=XXXXX</code>
* [[Unable to parse config file]]
 
 
* [[Terraform S3 backend: profile]]
 
* [[Terraform S3 backend: profile]]
 
* <code>[[~/.kube/config]]</code>
 
* <code>[[~/.kube/config]]</code>

Latest revision as of 10:22, 10 October 2024

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-settings

.aws/config

Examples[edit]

[default]
region = us-east-1
[default]
region = eu-central-1
output=text
[default]
region = eu-central-1
output=text
cli_pager=
[default]
region = me-south-1
[profile MY_SECOND_ACCOUNT]
region = us-east-2

Named profiles[edit]


[profile your_second_profile_name]
region=us-east-1
output=text

IAM identity center example[edit]

 [profile AdministratorAccess-452850246549]
sso_session = your-username
sso_account_id = 123456789
sso_role_name = AdministratorAccess
region = us-east-1
output = json
[sso-session your-username]
sso_start_url = https://d-123456789.awsapps.com/start
sso_region = us-east-1
sso_registration_scopes = sso:account:access

Options[edit]

Configuration files[edit]

Errors[edit]

Related[edit]

See also[edit]

Advertising: