{"id":34225710,"url":"https://github.com/cameronnewman/mfa4aws","last_synced_at":"2026-03-11T07:33:14.527Z","repository":{"id":64302523,"uuid":"191912063","full_name":"cameronnewman/mfa4aws","owner":"cameronnewman","description":"Simple CLI tool which enables you to login and retrieve AWS temporary credentials for IAM users.","archived":false,"fork":false,"pushed_at":"2023-10-11T23:24:22.000Z","size":239,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-19T05:41:07.677Z","etag":null,"topics":["aws","aws-iam","cli","golang","golang-cli","iam","mfa","sts"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cameronnewman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-14T09:08:07.000Z","updated_at":"2023-04-11T15:26:19.000Z","dependencies_parsed_at":"2024-06-20T14:23:04.443Z","dependency_job_id":null,"html_url":"https://github.com/cameronnewman/mfa4aws","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/cameronnewman/mfa4aws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronnewman%2Fmfa4aws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronnewman%2Fmfa4aws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronnewman%2Fmfa4aws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronnewman%2Fmfa4aws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cameronnewman","download_url":"https://codeload.github.com/cameronnewman/mfa4aws/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronnewman%2Fmfa4aws/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-iam","cli","golang","golang-cli","iam","mfa","sts"],"created_at":"2025-12-16T00:12:16.481Z","updated_at":"2026-03-11T07:33:14.520Z","avatar_url":"https://github.com/cameronnewman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mfa4aws  \n\n[![Build][1]][2]\n[![GoDoc][3]][4]\n[![Go Report Card][5]][6]\n[![FOSSA Status][9]][10]\n\n[1]: https://github.com/cameronnewman/mfa4aws/workflows/pipeline/badge.svg\n[2]: https://github.com/cameronnewman/mfa4aws/actions\n[3]: https://godoc.org/github.com/cameronnewman/mfa4aws?status.svg\n[4]: https://godoc.org/github.com/cameronnewman/mfa4aws\n[5]: https://goreportcard.com/badge/github.com/cameronnewman/mfa4aws\n[6]: https://goreportcard.com/report/github.com/cameronnewman/mfa4aws\n[9]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fcameronnewman%2Fmfa4aws.svg?type=shield\n[10]: https://app.fossa.io/projects/git%2Bgithub.com%2Fcameronnewman%2Fmfa4aws?ref=badge_shield\n\nSimple CLI tool which enables you to login and retrieve [AWS](https://aws.amazon.com/) temporary credentials  for IAM users.\n\n## Table of Contents\n\n- [Table of Contents](#table-of-contents)\n- [Requirements](#requirements)\n- [Install](#install)\n    - [OSX](#osx)\n- [Usage](#usage)\n    - [`mfa4aws shell`](#mfa4aws-shell)\n- [Example](#example)\n- [Building](#building)\n- [Environment vars](#environment-vars)\n\n## Requirements\n\n* Access Key and Secret Key stores $HOME/.aws/credentials\n* AWS IAM User account\n\n## Install\n\n### OSX\n\nTBA\n\n## Usage\n\n```\nUsage:\n  shell [command]\n\nAvailable Commands:\n  help        Help about any command\n  shell       Generates AWS STS access keys for use on the shell by wrapping the result in eval\n  version     display release version\n\nFlags:\n  -h, --help             help for shell\n  -p, --profile string   AWS Profile name in $HOME/.aws/credentials (default \"default\")\n  -t, --token string     Current MFA value to use for STS generation\n\nUse \"shell [command] --help\" for more information about a command.\n```\n\n\n### `mfa4aws shell`\n\nIf the `shell` sub-command is called, `mfa4aws` will output the following temporary security credentials:\n```\nexport AWS_ACCESS_KEY_ID=DDFHAFG....UOCA\nexport AWS_SECRET_ACCESS_KEY=\"JSKA...HJ2F\nexport AWS_SESSION_TOKEN=ZQ...1VVQ==\nexport AWS_SECURITY_TOKEN=ZQ...1VVQ==\nexport X_PRINCIPAL_ARN=arn:aws:iam::3678236812376:user/johnsmith\n```\n\nIf you use `eval $(mfa4aws shell)` frequently, you may want to create a alias for it:\n\nzsh:\n```\nalias m4a=\"function(){eval $( $(command mfa4aws) shell --token=$@);}\"\n```\n\nbash:\n```\nfunction m4a { eval $( $(which mfa4aws) shell --token=$@); }\n```\n\n\n## Building\n\n```\nmake build\n```\n\n## Environment vars\n\nThe exec sub command will export the following environment variables.\n\n* AWS_ACCESS_KEY_ID\n* AWS_SECRET_ACCESS_KEY\n* AWS_SESSION_TOKEN\n* AWS_SECURITY_TOKEN\n* X_PRINCIPAL_ARN\n\n# License\n\nThis code is Copyright (c) 2018 [Cameron Newman](https://cameron.newman.io) and released under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronnewman%2Fmfa4aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcameronnewman%2Fmfa4aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronnewman%2Fmfa4aws/lists"}