Skip to content

Commit a4ea337

Browse files
committed
[Docs] - add the document for using hotkey and mark sensitive data (ec2 instance id)
1 parent 0ab2a83 commit a4ea337

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,28 @@ aws_secret_access_key=yyyyxxxxyyyy
107107
## How to use
108108
### AssumeRole
109109
```
110-
Hotkey: Ctrl + @ and press enter and choose the assume role that you want to use.
111-
Enter functionname: aws_assume_role_set_name_with_hint
112-
110+
Hotkey (US keyboard layout) : Ctrl + @ (number 2) and press enter and choose the assume role that you want to use.
111+
Typing function_name: aws_assume_role_set_name_with_hint
113112
```
114113
### List all functions
115114
```
116-
aws_help
115+
Hotkey (US keyboard layout): Ctrl + h and you can search the funtion and enter to chose which commandline you want to run or edit before running.
116+
Typing function_name: aws_help (You only search the name function, can not select or edit funtion directly on console).
117117
```
118118
You can search list function and after that you can run which `funtion_name` to get the detail of bashshell code.
119119

120+
![image](./images/aws_help.png)
121+
122+
### List history and select the commandline that you want to re-run
123+
```
124+
Hotkey (US keyboard layout): Ctrl + r and you can search the history commandlines and enter to chose which commandline you want to run or edit before running.
125+
```
126+
127+
120128
### Other
121129
```
122-
admin@MacBook-Pro-cua-Admin ~ % aws_assume_role_set_name PROFILE_NAME-dev
130+
source ~/.bashrc
131+
aws_assume_role_set_name PROFILE_NAME-dev
123132
You set the assume role name PROFILE_NAME-dev
124133
Running assume-role PROFILE_NAME-dev
125134
MFA code: 165933
@@ -139,8 +148,8 @@ admin@MacBook-Pro-cua-Admin aws_cli_results % aws_ec2_list
139148
+---------------------+---------------------------------+---------------+----------------+-----------+
140149
| InstanceId | Name | PrivateIp | PublicIp | State |
141150
+---------------------+---------------------------------+---------------+----------------+-----------+
142-
| i-0512340c9dc5fb531| demo-dev-jenkins-master | x.x.x.x | 1.123.123.123 | running |
143-
| i-0712343f1a9565397| demo-dev-mongodb-master | y.y.y.y | 1.123.123.123 | running |
151+
| i-0512340c9dc5fb123| demo-dev-jenkins-master | x.x.x.x | 1.123.123.123 | running |
152+
| i-0712343f1a9565456| demo-dev-mongodb-master | y.y.y.y | 1.123.123.123 | running |
144153
+---------------------+---------------------------------+---------------+----------------+-----------+
145154
```
146155

0 commit comments

Comments
 (0)