Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fuadop/aws-assume-role-manager
https://github.com/fuadop/aws-assume-role-manager
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fuadop/aws-assume-role-manager
- Owner: fuadop
- Created: 2024-05-12T22:01:07.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-17T21:31:05.000Z (6 months ago)
- Last Synced: 2024-10-12T07:05:52.334Z (about 1 month ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# assmer[ctl/d]
## Usage
Example config
```ini
[profile test-mfa]
region = xxx
source_profile = xxx
role_session_name = xxx
role_arn = xxx
mfa_serial = xxxx
```And whenever you call `assumerctl`, it will list all roles with this setup.
```
** Profiles **
0) test-mfa
Select profile: 0
Selected Profile: test-mfa
```
And when you select your profile, you get a new temporary role added to your aws config.
And it will get auto deleted from your aws config when the expiry time is reached.
```
Profile created !
The profile name is: tkucr
The profile will expire at: 2024-05-16T17:50:00+00:00assumerd will automatically remove the profile after expiration
```The auto deletion part only works on MacOS currently, it's based on Mac's init system (launchd).
The same can be done on Linux with systemd.
## Installation
```bash
# clone the repository
git clone https://github.com/fuadop/aws-assume-role-manager.git# change directory into the clone
cd aws-assume-role-manager# run the install script
./install.sh
```