{"id":21330874,"url":"https://github.com/kadenbarlow/awsctx","last_synced_at":"2025-07-12T09:31:03.004Z","repository":{"id":46920893,"uuid":"248595509","full_name":"kadenbarlow/awsctx","owner":"kadenbarlow","description":"CLI Tool for Managing AWS Account Keys","archived":false,"fork":false,"pushed_at":"2021-09-21T12:39:19.000Z","size":20,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T17:24:04.457Z","etag":null,"topics":["account","aws","cli","management","tool"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/kadenbarlow.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":"2020-03-19T20:11:07.000Z","updated_at":"2022-12-02T22:05:19.000Z","dependencies_parsed_at":"2022-09-02T18:21:08.106Z","dependency_job_id":null,"html_url":"https://github.com/kadenbarlow/awsctx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kadenbarlow/awsctx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadenbarlow%2Fawsctx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadenbarlow%2Fawsctx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadenbarlow%2Fawsctx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadenbarlow%2Fawsctx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kadenbarlow","download_url":"https://codeload.github.com/kadenbarlow/awsctx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadenbarlow%2Fawsctx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264972147,"owners_count":23691375,"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":["account","aws","cli","management","tool"],"created_at":"2024-11-21T22:25:18.888Z","updated_at":"2025-07-12T09:31:02.730Z","avatar_url":"https://github.com/kadenbarlow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Awsctx\n\nI spend a lot of time doing bouncing between aws accounts and I couldn't find an easy way to manage the different access keys I had. After using an awesome kuberneetes tool called [kubectx](https://github.com/ahmetb/kubectx) I was inspired to create a similar tool but for switching between different aws accounts.\n\n## Installing\n\n### Prerequisites\n1. [jq](https://stedolan.github.io/jq/)\n2. [aescrypt](https://www.aescrypt.com/)\n   1. Note, if on MacOS do *not* use `brew install aescrypt`, instead download from the link above\n3. [fzf](https://github.com/junegunn/fzf) - optional for fuzzy search menus\n\n### Installing Awsctx\n```bash\ngit clone https://github.com/kadenbarlow/awsctx.git\ncd awsctx\ncp awsctx /usr/local/bin/awsctx\n```\n\n## Usage\n```bash\nUSAGE:\n  awsctx                       : list the contexts\n  awsctx \u003cNAME\u003e                : switch to context \u003cNAME\u003e\n  awsctx -                     : switch to the previous context\n  awsctx -e, --export \u003cNAME\u003e   : export context as env, e.g. source awsctx -e \u003cname\u003e\n  awsctx -c, --current         : show the current context name\n  awsctx -s, --set \u003cNAME\u003e      : fill ~/.aws/credentials with context variables\n  awsctx -n, --new             : create a new aws context\n  awsctx -p, --password        : change encryption password\n  awsctx \u003cNEW_NAME\u003e=\u003cNAME\u003e     : rename context \u003cNAME\u003e to \u003cNEW_NAME\u003e\n  awsctx \u003cNEW_NAME\u003e=.          : rename current_context to \u003cNEW_NAME\u003e\n  awsctx -d \u003cNAME\u003e [\u003cNAME...\u003e] : delete context \u003cNAME\u003e ('.' for current_context)\n                                  (this command won't delete the credentials in ~/.aws/credentials)\n  awsctx -h,--help             : show this message\n```\n\n## Keeping Credentials Secure\nAwsctx uses aescrypt to store credentials securely. Although the option is provided to set credentials in the `~/.aws/credentials` file, using the command `awsctx -s \u003cNAME\u003e`, it is recommended to source the credentials in your environment when needed to avoid storing credentials in plain text. To do this use the command `source awsctx -e` and your credentials will be set to the environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.\n\n## Authors\n\n* **Kaden Barlow** - [kadenbarlow](https://github.com/kadenbarlow)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadenbarlow%2Fawsctx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkadenbarlow%2Fawsctx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadenbarlow%2Fawsctx/lists"}