Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cynipe/awsmfa
https://github.com/cynipe/awsmfa
Last synced: about 12 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/cynipe/awsmfa
- Owner: cynipe
- Created: 2020-05-07T14:09:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T16:47:49.000Z (over 4 years ago)
- Last Synced: 2024-11-12T10:48:29.116Z (about 1 month ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# awsmfa
awsmfa util script for cli
## Prerequisites
- aws cli
- place your aws config as following:~/.aws/credentials
```
[refresh-awsmfa-token]
aws_access_key_id = ***********
aws_secret_access_key = **********************
```## Install
```
$ make install AWS_ACCOUNT_ID=123456789012
```Want to change the IAM_USER instead of whoami?
```
$ make install AWS_ACCOUNT_ID=123456789012 AWS_IAM_USER=your-iam-user
```Want to change the install dir?
```
$ make install AWS_ACCOUNT_ID=123456789012 BINDIR=~/.local/bin
```## Usage
```
$ awsmfa
MFA Token: 123456~/.aws/credentials updated
```Want to change DURATION_SEC to 3600 instead of 1800?
```
$ awsmfa 3600
MFA Token: 123456~/.aws/credentials updated
```For more?
```
cat Makefile
```