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

From wikieduonline
Jump to navigation Jump to search
Line 25: Line 25:
  
 
=== [[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 ==

Revision as of 14:54, 11 February 2024

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

.aws/config

Examples

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

Named profiles


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

IAM identity center example

 [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

cli_auto_prompt = on
cli_pager, aws configure set cli_pager ""

Configuration files

Related

See also

Advertising: