Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmatur/aws-mfa
Help to manage MFA with awscli
https://github.com/mmatur/aws-mfa
Last synced: about 2 months ago
JSON representation
Help to manage MFA with awscli
- Host: GitHub
- URL: https://github.com/mmatur/aws-mfa
- Owner: mmatur
- License: apache-2.0
- Created: 2018-12-20T13:54:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T20:07:19.000Z (over 3 years ago)
- Last Synced: 2024-10-04T19:22:52.761Z (2 months ago)
- Language: Go
- Homepage:
- Size: 68.4 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: readme.adoc
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - mmatur/aws-mfa - Help to manage MFA with awscli (Go)
README
= AWS MFA
If you use AWS CLI with Multi-Factor Authentication, this tool is made for you.
image:https://asciinema.org/a/217866.png["aws-mfa", link="https://asciinema.org/a/217866"]
== Prerequisite
You should be sure to adapt your `~/.aws/credentials` file like that before using `aws-mfa`
[source, shell]
----
cat ~/.aws/credentials
[default-long-term]
aws_access_key_id = XXXXXXXXXXXX
aws_secret_access_key = YYYYYYYYYYY
----== How to Install
[source, shell]
----
go get -u github.com/mmatur/aws-mfa/cmd/aws-mfa
----== Command
[source, shell]
----
aws-mfa --help
AWS - MFAUsage: aws-mfa [flags] []
Use "aws-mfa --help" for help on any command.
Commands:
version Display the version.Flag's usage: aws-mfa [--flag=flag_argument] [-f[flag_argument]] ... set flag_argument to flag(s)
or: aws-mfa [--flag[=true|false| ]] [-f[true|false| ]] ... set true/false to boolean flag(s)Flags:
--credentialfile Credential file. (default: ~/.aws/credentials) (default "/home/michael/.aws/credentials")
--debug Enable debug (default "false")
--duration Duration in seconds for credentials to remain valid (default: 43200) (default "43200")
--force Force credentials renew (default "false")
--profile AWS profile to use. (default: default) (default "default")
-h, --help Print Help (this message) and exit
----