Difference between revisions of "$HOME/.aws/config"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
<code>[[.aws/]]config</code> | <code>[[.aws/]]config</code> | ||
+ | == Examples == | ||
[default] | [default] | ||
[[region]] = [[me-south-1]] | [[region]] = [[me-south-1]] | ||
Line 14: | Line 15: | ||
[profile MY_SECOND_ACCOUNT] | [profile MY_SECOND_ACCOUNT] | ||
region = [[us-east-2]] | region = [[us-east-2]] | ||
+ | |||
+ | === Named profiles === | ||
+ | * https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html | ||
== Options == | == Options == |
Revision as of 01:19, 17 February 2022
Contents
Examples
[default] region = me-south-1
[default] region = eu-central-1 output=text
[default] region = me-south-1 [profile MY_SECOND_ACCOUNT] region = us-east-2
Named profiles
Options
cli_auto_prompt = on cli_pager
Configuration files
Related commands
aws configure list
andaws configure list-profiles
export AWS_DEFAULT_PROFILE=MY_SECOND_ACCOUNT
aws list all
The config profile (yourprofilename) could not be found
aws iam list-virtual-mfa-devices
See also
- 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
- AWS CLI,
aws
[configure
|iam
|ec2
|ecs
|eks
|s3
|rds
|sts
|cloudwatch
|cloudformation
|cloudfront
|eventbridge
|lambda
],aws configure list
,.aws/credentials
,.aws/config
,~/.aws/cli/alias
,--output [ table | json | text | XXX ]
, Aws cli environmental variables:AWS_PROFILE
,AWS_DEFAULT_REGION, AWS_REGION
,AWS_CLI_AUTO_PROMPT
,AWS_SESSION_TOKEN
,aws list all
,auto-prompt
,--version
,whoamiaws, --filters, --help
Advertising: