{"id":18781083,"url":"https://github.com/kenshin54/aws-simple-mfa","last_synced_at":"2025-04-13T11:31:11.233Z","repository":{"id":45598604,"uuid":"234992555","full_name":"kenshin54/aws-simple-mfa","owner":"kenshin54","description":"Use AWS CLI with MFA enabled, but no Assume Role required.","archived":false,"fork":false,"pushed_at":"2023-02-07T09:42:17.000Z","size":38,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T03:02:22.135Z","etag":null,"topics":["awscli","mfa","plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kenshin54.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":"2020-01-20T01:03:02.000Z","updated_at":"2023-01-31T17:50:50.000Z","dependencies_parsed_at":"2024-11-07T20:32:16.133Z","dependency_job_id":"cbb95777-c83c-4030-a936-e5ce0d0a584f","html_url":"https://github.com/kenshin54/aws-simple-mfa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenshin54%2Faws-simple-mfa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenshin54%2Faws-simple-mfa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenshin54%2Faws-simple-mfa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenshin54%2Faws-simple-mfa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenshin54","download_url":"https://codeload.github.com/kenshin54/aws-simple-mfa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705588,"owners_count":21148558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["awscli","mfa","plugin"],"created_at":"2024-11-07T20:29:30.845Z","updated_at":"2025-04-13T11:31:10.919Z","avatar_url":"https://github.com/kenshin54.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-simple-mfa\n\n[![Build Status](https://travis-ci.org/kenshin54/aws-simple-mfa.svg?branch=master)](https://travis-ci.org/kenshin54/aws-simple-mfa)\n   \nUse AWS CLI with MFA enabled, but no Assume Role required.\n\n## Advantage\n\n1. Use AWS CLI plugin system, no extra command required.\n2. Reuse official cache mechanism from AWS CLI without touching your config file.\n3. Multiple profiles supported.\n\n## Installation\n\nYou can install the latest package from GitHub source:\n\n    $ pip install -U git+https://github.com/kenshin54/aws-simple-mfa.git\n\n## Getting Started\n\nBefore using aws-simple-mfa plugin, you need to [configure awscli](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) first.\n\n    $ aws configure set plugins.cli_legacy_plugin_path  ~/.local/lib/python3.10/site-packages\n    $ aws configure set plugins.simplemfa awssimplemfa\n    \nThe above commands add the below section to your aws config file. You can also directly edit your `~/.aws/config` with the following configuration:\n\n    [plugins]\n    cli_legacy_plugin_path = ~/.local/lib/python3.10/site-packages\n    simplemfa = awssimplemfa\n    \nRefer to the [documentation](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration-changes.html#cliv2-migration-profile-plugins) for more details.\n\nEnable MFA via AWS Console and add mfa_serial to your profile, finally it would look like below:\n\n    [profile test]\n    region = us-west-2\n    aws_access_key_id = akid\n    aws_secret_access_key = skid\n    mfa_serial = my_mfa_serial\n    \nIf you want to use the temporary session in other scenarios such as project development, aws-simple-mfa will generate a tmp credential file for you. The default location is `~/.aws/simple_mfa_tmp_credentials`, you can update the AWS_SHARED_CREDENTIALS_FILE and AWS_PROFILE environment variables accordingly. You can also customize the tmp credential file in your profile like this:\n  \n    [profile test]\n    region = us-west-2\n    aws_access_key_id = akid\n    aws_secret_access_key = skid\n    mfa_serial = my_mfa_serial\n    tmp_credential_file = /my/preferred/path\n    \nThat's it, Try any aws commands that protected by MFA, you will be prompted to enter one time password.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenshin54%2Faws-simple-mfa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenshin54%2Faws-simple-mfa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenshin54%2Faws-simple-mfa/lists"}