{"id":21870181,"url":"https://github.com/qoomon/aws-session","last_synced_at":"2025-04-14T23:43:35.999Z","repository":{"id":57413365,"uuid":"208723574","full_name":"qoomon/aws-session","owner":"qoomon","description":"A CLI to generate and store session credentials in ~/.aws/credentials file, based on ~/.aws/config profiles","archived":false,"fork":false,"pushed_at":"2020-10-19T18:22:19.000Z","size":51,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T11:43:32.818Z","etag":null,"topics":["assume","aws","cli","credentials","iam","mfa","profiles","role","session"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qoomon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-16T06:13:59.000Z","updated_at":"2021-07-26T09:15:23.000Z","dependencies_parsed_at":"2022-09-26T17:10:24.083Z","dependency_job_id":null,"html_url":"https://github.com/qoomon/aws-session","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoomon%2Faws-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoomon%2Faws-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoomon%2Faws-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoomon%2Faws-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qoomon","download_url":"https://codeload.github.com/qoomon/aws-session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625497,"owners_count":21135513,"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":["assume","aws","cli","credentials","iam","mfa","profiles","role","session"],"created_at":"2024-11-28T06:10:35.182Z","updated_at":"2025-04-14T23:43:35.981Z","avatar_url":"https://github.com/qoomon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-session\n\n[![PyPI](https://img.shields.io/pypi/v/aws-session)](https://pypi.org/project/aws-session/)\n\nA CLI to generate and store session credentials in `~/.aws/credentials` file, based on `~/.aws/config` profiles\n\n## Install\n\n`pip3 install aws-session`\n\n## Usage\n```\nget session credentials:\n\n    aws-session get [--profile/-p \u003cprofile_name\u003e]\n\n        --profile/-p \u003cprofile_name\u003e : select profile ['default']\n        --force/-f                  : force new session\n\n    To create MFA user sessions just add `mfa_serial` to profile config in ~/.aws/config profiles\n\nlist session profiles:\n\n    aws-session list\n\npurge expired session profiles:\n\n    aws-session purge\n\n        --force/-f                  : purge all session profiles regardles of expiration\n\nprint help\n\n    aws-session help\n```\n\n## Setup dev environment\n\n#### Install Dev Dependencies\n```\nexport PATH=\"${PATH}:/Users/${USER}/Library/Python/3.7/bin\"\nexport PYTHONPATH=\"${PYTHONPATH}:/Users/${USER}/Library/Python/3.7/bin\"\npip3 install --user -r requirements.txt\npip3 install --user -r requirements-dev.txt\n```\n\n## Run\n`python3 -m aws_session get`\n\n#### Create Package\n`python3 setup.py clean --all sdist bdist_wheel` \n\n#### Local Install\n`pip3 install --force-reinstall --no-deps dist/aws_session-*-py3-none-any.whl`\n\n#### Deploy to PiPy\n`twine upload dist/*`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoomon%2Faws-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqoomon%2Faws-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoomon%2Faws-session/lists"}