{"id":19959538,"url":"https://github.com/vandot/awstoken","last_synced_at":"2026-05-14T19:03:55.544Z","repository":{"id":114454236,"uuid":"129010912","full_name":"vandot/awstoken","owner":"vandot","description":"Bash wrapper around awscli for easy temporary security credential generation for AWS API","archived":false,"fork":false,"pushed_at":"2019-11-11T21:48:02.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T16:23:20.801Z","etag":null,"topics":["aws-cli","get-session-token","mfa","sts"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vandot.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":"2018-04-11T00:29:36.000Z","updated_at":"2020-01-01T06:22:41.000Z","dependencies_parsed_at":"2023-06-07T23:45:09.177Z","dependency_job_id":null,"html_url":"https://github.com/vandot/awstoken","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vandot/awstoken","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandot%2Fawstoken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandot%2Fawstoken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandot%2Fawstoken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandot%2Fawstoken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vandot","download_url":"https://codeload.github.com/vandot/awstoken/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vandot%2Fawstoken/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33039250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["aws-cli","get-session-token","mfa","sts"],"created_at":"2024-11-13T01:48:09.455Z","updated_at":"2026-05-14T19:03:55.527Z","avatar_url":"https://github.com/vandot.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Awstoken is a bash wrapper around awscli for easy temporary security credential generation for AWS API.\n\nMore about AWS temporary security credential [here](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html).\n\nMain purpose is to be able easily to force MFA for all users even for API access.\nMore about forcing MFA [here](https://www.trek10.com/blog/improving-the-aws-force-mfa-policy-for-IAM-users/).\nNow developers AWS_KEY will never be introduced into production :)\n\n## Requirements\n\n  1. [awscli](https://aws.amazon.com/cli/) - `pip install awscli`\n\n## Install\n\n- download **.awstoken** into your $HOME folder\n- source **.awstoken** into your bash/zsh/ksh env `. ~/.awstoken`\n\nEasy way to install is with this command, it will download **.awstoken** into your $HOME folder and add `. ~/.awstoken` at the bottom of your **rcfile**\n\n`curl -s https://raw.githubusercontent.com/vandot/awstoken/master/install.sh | $SHELL`\n\n## Usage\n\n- Basic usage `awstoken -u user -t 123456 -a 012345678910`\n- You can specify different aws profiles defined inside `~/.aws/credentials` using **-p**\n- For help `awstoken -h`\n\n## Power usage\n\nYou can put user and account variables inside profile block in `~/.aws/credentials`, awscli just skips those values so credential file is still valid.\n```\n[default]\naws_access_key_id = AWSACCESSKEY\naws_secret_access_key = AWSSECRETACCESSKEY\nuser = username\naccount = 012345678910\n```\n\n## Insecure mode\n\nYou can choose to save your temporary credentials so you can reuse them in other shell.\nTo enable it you can manualy change `INSECURE` to `true` in `~/.awstoken` or install it with `insecure` option\n\n`curl -s https://raw.githubusercontent.com/vandot/awstoken/master/install.sh | $SHELL -s -- insecure`\n\nTo load temp credentials in other shell run command with selected profile\n`awstoken -p profile`\n\n## How it works\n\nAfter obtaining temporary security credentials using `sts get-session-token` sets and exports \n- *AWS_ACCESS_KEY_ID*\n- *AWS_SECRET_ACCESS_KEY*\n- *AWS_SESSION_TOKEN*\n\n## License\n\nUnless otherwise noted, the awstoken source files and binaries are distributed under the BSD-style license found in the LICENSE file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvandot%2Fawstoken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvandot%2Fawstoken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvandot%2Fawstoken/lists"}