Skip to content

Commit 6128336

Browse files
committed
improve documentation
1 parent c418348 commit 6128336

File tree

1 file changed

+8
-27
lines changed

1 file changed

+8
-27
lines changed

README.md

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -37,33 +37,6 @@ Default output format [None]: json
3737
> NOTE: If you don't have AWS CLI, check out
3838
[installation guide](https://docs.aws.amazon.com/cli/latest/userguide/installing.html)
3939

40-
## Get Values for Your AWS Account
41-
42-
Run the following command in terminal:
43-
```shell
44-
aws sts get-caller-identity --output text --query 'Account'
45-
```
46-
47-
Your output should be similar to the one below:
48-
```
49-
123456789012
50-
```
51-
52-
Run the following command in terminal:
53-
```shell
54-
aws configure list
55-
```
56-
57-
Your output should be similar to the one below:
58-
```
59-
Name Value Type Location
60-
---- ----- ---- --------
61-
profile <not set> None None
62-
access_key ****************LEID shared-credentials-file
63-
secret_key ****************EKEY shared-credentials-file
64-
region us-east-1 config-file /home/demo/.aws/config
65-
```
66-
6740
## Setup Environment Variables (Will Be Used Later)
6841

6942
Manual Setup (set values in double quotes and run the following command in terminal):
@@ -72,9 +45,17 @@ export AWS_ACCOUNT_ID="" ## e.g. 123456789012
7245
export AWS_DEFAULT_REGION="" ## e.g. us-east-1
7346
```
7447

48+
### Setup AWS_ACCOUNT_ID Programmatically
49+
7550
Automated Setup (run the following command in terminal):
7651
```shell
7752
export AWS_ACCOUNT_ID="$(aws sts get-caller-identity --output text --query 'Account')"
53+
```
54+
55+
### Setup AWS_DEFAULT_REGION Programmatically
56+
57+
Automated Setup (run the following command in terminal):
58+
```shell
7859
export AWS_DEFAULT_REGION="$(aws configure get region)"
7960
```
8061

0 commit comments

Comments
 (0)