You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-7
Original file line number
Diff line number
Diff line change
@@ -11,20 +11,23 @@ The ARN should be the ARN of your MFA device as specified in the AWS console.
11
11
12
12
The MFA code is the code your MFA device gives you.
13
13
14
-
# Installation
14
+
## Installation
15
+
15
16
1. Extract the files to your home directory `~/`
16
17
2. Add `source ./alias.sh` to your `~/.bashrc`
17
18
3. Copy `SAMPLE-mfa.cfg` to `~/mfa.cfg`
18
-
4. Add a profile name and MFA ARN for each aws cli profile you wish to use. The key should be the profile name and the value should be the ARN of the MFA to use for that profile.
19
-
20
-
# Running the script
19
+
4. Add a profile name and MFA ARN for each aws cli profile you wish to use. The key should be the profile name and the value should be the ARN of the MFA to use for that profile.
20
+
21
+
## Running the script
22
+
21
23
At a command prompt run the following command.
22
24
23
-
```
25
+
```bash
24
26
mfa <mfacode><optional-aws-profile>
25
27
```
26
-
27
-
## Alias Note:
28
+
29
+
### Alias Note
30
+
28
31
Scripts run in a subprocess of the calling shell. This means that
29
32
if you attempt to set the env vars in the script, they will only persist
30
33
inside that subprocess. The `alias.sh` script sets an alias function to source the env vars into your main shell whenever you
0 commit comments