{"id":19022984,"url":"https://github.com/chdsbd/awsudo-py","last_synced_at":"2025-08-02T05:08:04.710Z","repository":{"id":57413414,"uuid":"163619874","full_name":"chdsbd/awsudo-py","owner":"chdsbd","description":":wrench: A sudo-like tool to configure AWS environment variables and call programs","archived":false,"fork":false,"pushed_at":"2019-06-11T17:32:23.000Z","size":29,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T08:49:18.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chdsbd.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}},"created_at":"2018-12-30T21:49:06.000Z","updated_at":"2022-08-08T09:29:21.000Z","dependencies_parsed_at":"2022-09-15T03:41:02.483Z","dependency_job_id":null,"html_url":"https://github.com/chdsbd/awsudo-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chdsbd/awsudo-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chdsbd%2Fawsudo-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chdsbd%2Fawsudo-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chdsbd%2Fawsudo-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chdsbd%2Fawsudo-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chdsbd","download_url":"https://codeload.github.com/chdsbd/awsudo-py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chdsbd%2Fawsudo-py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268338239,"owners_count":24234540,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-08T20:28:21.819Z","updated_at":"2025-08-02T05:08:04.688Z","avatar_url":"https://github.com/chdsbd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# awsudo [![CircleCI](https://circleci.com/gh/chdsbd/awsudo-py.svg?style=svg)](https://circleci.com/gh/chdsbd/awsudo-py) [![pypi](https://img.shields.io/pypi/v/awsudo-py.svg)](https://pypi.org/project/awsudo-py/)\n\u003e A sudo-like tool to configure AWS environment variables and call programs\n\nThis script is useful for programs like Terraform, which doesn't support MFA when assuming roles. \n\n\n## Installation\n```sh\npython3 -m pip install awsudo-py\n```\n\n## Usage\n```console\n$ awsudo -p administrator@staging terraform apply\n\n$ awsudo -p administrator@staging env | grep AWS\nAWS_ACCESS_KEY_ID=AKIAIXMBKCITA257EHIQ\nAWS_SECRET_ACCESS_KEY=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\n```\n\n```\nusage: awsudo [-h] [-p PROFILE] PROG [ARG [ARG ...]]\n\nSet environment variables using profile\n\npositional arguments:\n  PROG                  executable to run\n  ARG                   args to run with program\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -p PROFILE, --profile PROFILE\n                        AWS Profile to assume\n```\n\n## Development\n[Poetry][poetry] is necessary to install this project for development.\n```sh\n# install dependencies\nmake install\n\n# linting\nmake typecheck\nmake fmt\n# error on bad formatting\nmake fmt-check\nmake lint\n\n# testing\nmake test\n# runs fmt, typecheck, build\nmake all \n\n# building/publishing\nmake clean\nmake build\nmake publish\n# build and install program directly\nmake install-program\nmake uninstall-program\n\n# run program (we can't pass args to Make)\npoetry run awsudo\n```\n[poetry]: https://github.com/sdispater/poetry\n\n## Prior Art\nThere are a lot of similar programs to this one. I believe [makethunder/awsudo][0] and [electronicarts/awsudo][1] are the best alternatives. The only problems with [makethunder/awsudo][0] are that it isn't published on pypi and that it doesn't use the newest api for caching sessions. [electronicarts/awsudo][1] has all of the features, but it uses an internal session cache, instead of sharing with awscli. If you need SAML support though, the internal cache is a necessary compromise, so this package is great in that case.\n\nproject|awscli profiles|session caching|SAML|language|published\n---|---|---|---|---|---\nthis project|yes|yes|no|python3.6|pypi\n[makethunder/awsudo][0]|yes|yes*|no|python|github\n[electronicarts/awsudo][1]|yes|yes⦿|yes|ruby|rubygems\n[pmuller/awsudo][2]|yes|no|no|python2.7, python3.5|pypi\n[ingenieux/awsudo][3]|no|no|no|golang|no\n[meltwater/awsudo][4]|yes|yes|no|bash, node|npm, dockerhub\n\n\\*  supports session caching through older technique using awscli as a dependency\n\n⦿ uses a daemon to cache sessions internally\n\n[0]: https://github.com/makethunder/awsudo\n[1]: https://github.com/electronicarts/awsudo\n[2]: https://github.com/pmuller/awsudo\n[3]: https://github.com/ingenieux/awsudo\n[4]: https://github.com/meltwater/awsudo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchdsbd%2Fawsudo-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchdsbd%2Fawsudo-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchdsbd%2Fawsudo-py/lists"}