Difference between revisions of "$HOME/.aws/config"
Jump to navigation
Jump to search
(→Errors) |
|||
(19 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
<code>[[.aws/]]config</code> | <code>[[.aws/]]config</code> | ||
+ | == Examples == | ||
[default] | [default] | ||
− | [[region]] = [[ | + | [[region]] = [[us-east-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 14: | Line 20: | ||
[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 | ||
+ | |||
+ | |||
+ | [profile your_second_profile_name] | ||
+ | region=us-east-1 | ||
+ | output=text | ||
+ | |||
+ | === [[IAM identity center]] example === | ||
+ | |||
+ | |||
+ | {{awsconfig identity}} | ||
== Options == | == Options == | ||
* <code>[[mfa_serial]]</code> | * <code>[[mfa_serial]]</code> | ||
− | + | * <code>[[cli_auto_prompt]] = on</code> | |
+ | * <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> | ||
− | == Related | + | == Errors == |
+ | * <code>[[Unable to parse config file]]</code> | ||
+ | |||
+ | == 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> | ||
Line 29: | Line 52: | ||
* <code>[[The config profile]] (yourprofilename) could not be found</code> | * <code>[[The config profile]] (yourprofilename) could not be found</code> | ||
* <code>[[aws iam list-virtual-mfa-devices]]</code> | * <code>[[aws iam list-virtual-mfa-devices]]</code> | ||
+ | * <code>export [[AWS_REGION]]=XXXXX</code> | ||
+ | * [[Terraform S3 backend: profile]] | ||
+ | * <code>[[~/.kube/config]]</code> | ||
== See also == | == See also == | ||
− | * {{aws cli | + | * {{aws cli config}} |
* {{aws configure}} | * {{aws configure}} | ||
* {{aws cli}} | * {{aws cli}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 10:22, 10 October 2024
Contents
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]
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
export AWS_REGION=XXXXX
- Terraform S3 backend: profile
~/.kube/config
See also[edit]
- 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: