This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
include_profile
to inherit fields from the source profile (#3)
* Use `include_profile` to make tool MFA agnostic * Update README.md with include_profile info * Only start session after completing command parsing * Use `ne` operator * Correct flag information
- Loading branch information
Showing
2 changed files
with
45 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,25 +26,22 @@ should look something like this: | |
|
||
``` | ||
[profile 123456789098] | ||
region=eu-central-1 | ||
role_arn=arn:aws:iam::123456789098:role/role-name | ||
source_profile=default | ||
mfa_serial=arn:aws:iam::111111111111:mfa/[email protected] | ||
include_profile=default | ||
[profile 098765432123] | ||
region=eu-central-1 | ||
role_arn=arn:aws:iam::098765432123:role/role-name-two | ||
source_profile=default | ||
mfa_serial=arn:aws:iam::111111111111:mfa/[email protected] | ||
include_profile=default | ||
. . . | ||
[. . .] | ||
``` | ||
|
||
#### Flags | ||
|
||
- `source-profile` Can be used to specify a source profile other than `default` | ||
- `region` Can be used to specify a region other than `eu-central-1` | ||
|
||
- `region` Can be used to specify a region other than the region in your source profile | ||
|
||
### aws-extend-switch-roles | ||
|
||
|
@@ -74,7 +71,6 @@ color = 00ff7f | |
- No human-readable profile names | ||
- Only recognizes policies that are attached to groups | ||
- Can only recognize explicit permissions (i.e. it doesn't work when the `Resource` is not a role ARN) | ||
- Assumes there's an MFA | ||
|
||
## Planned features | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters