Difference between revisions of "AWS REGION"
Jump to navigation
Jump to search
(10 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
* [[Amazon Regions]] | * [[Amazon Regions]] | ||
− | * [[AWS_DEFAULT_REGION]] | + | * <code>[[AWS_DEFAULT_REGION]]</code> |
− | + | * <code>[[export]] AWS_REGION=[[us-east-1]]</code> | |
+ | * <code>[[export]] AWS_REGION=[[eu-central-1]]</code> | ||
+ | |||
+ | * <code>REGION=$(curl http://[[169.254.169.254]]/latest/meta-data/placement/region)</code> | ||
== Related == | == Related == | ||
− | * <code>[[.aws/config]]</code> | + | * <code>[[~/.aws/config]]</code> |
* <code>[[aws configure get region]]</code> | * <code>[[aws configure get region]]</code> | ||
+ | * <code>[[aws ec2 describe-regions]] --query "Regions[].{Name:RegionName}" --output text</code> | ||
+ | * <code>[[AWS_ACCESS_KEY_ID]]</code> | ||
+ | * <code>[[AWS_SESSION_TOKEN]]</code> | ||
+ | * <code>[[aws sts get-caller-identity]]</code> | ||
+ | * [[You must specify a region. You can also configure your region by running "aws configure".]] | ||
== See also == | == See also == |
Latest revision as of 20:30, 22 February 2024
export AWS_REGION=us-east-1
export AWS_REGION=eu-central-1
REGION=$(curl http://169.254.169.254/latest/meta-data/placement/region)
Related[edit]
~/.aws/config
aws configure get region
aws ec2 describe-regions --query "Regions[].{Name:RegionName}" --output text
AWS_ACCESS_KEY_ID
AWS_SESSION_TOKEN
aws sts get-caller-identity
- You must specify a region. You can also configure your region by running "aws configure".
See also[edit]
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: