{"id":15287564,"url":"https://github.com/abyss/awsp-plus","last_synced_at":"2025-10-07T02:31:35.048Z","repository":{"id":41311804,"uuid":"413211158","full_name":"abyss/awsp-plus","owner":"abyss","description":"Switch AWS Profiles Even Easier","archived":false,"fork":false,"pushed_at":"2022-01-16T03:57:13.000Z","size":3619,"stargazers_count":14,"open_issues_count":5,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-26T08:14:22.731Z","etag":null,"topics":["aws","aws-iam","awsp","bash","hacktoberfest","iam-users","profile","shell","zsh"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abyss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-03T22:27:31.000Z","updated_at":"2024-08-20T14:12:09.000Z","dependencies_parsed_at":"2022-07-31T04:37:52.575Z","dependency_job_id":null,"html_url":"https://github.com/abyss/awsp-plus","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abyss%2Fawsp-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abyss%2Fawsp-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abyss%2Fawsp-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abyss%2Fawsp-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abyss","download_url":"https://codeload.github.com/abyss/awsp-plus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877413,"owners_count":16554878,"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":["aws","aws-iam","awsp","bash","hacktoberfest","iam-users","profile","shell","zsh"],"created_at":"2024-09-30T15:31:40.748Z","updated_at":"2025-10-07T02:31:29.706Z","avatar_url":"https://github.com/abyss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWSP Plus - Upgraded AWS Profile Switcher\n\n## :warning: Archived\n\nThis application is archived and no longer maintained. A drop in replacement is available at [abyss/go-awsp](https://github.com/abyss/go-awsp). Please visit the new repository for any updates and improvements as well as better cross-system compatibility.\n\n## Introduction\nEasily switch between AWS Profiles.\n\nExpanded fork of [awsp by johnnyopao](https://github.com/johnnyopao/awsp) with additional features and ongoing maintenance.*\n\n\\* no guarantee expressed or implied.\n\n\u003cimg src=\"demo.gif\" width=\"500\"\u003e\n\n## How it works\n\nThe AWS CLI will use the profile present in the `AWS_PROFILE` environment variable, if no flag is set. This script parses the current aws profiles (`~/.aws/config`) and provides a filterable list, and then sets that environment variable based on your selection.\n\n## Prerequisites\nSet up any number of profiles using the aws cli.\n\n```sh\naws configure --profile PROFILE_NAME\n```\n\nYou can also leave out the `--profile PROFILE_NAME` param to set your `default` credentials\n\nRefer to the AWS CLI Documentation for more information:\nhttps://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html\n\n## Setup\n\n```sh\nnpm install -g awsp-plus\n```\n\nAdd the following line to your `.bashrc` or `.zshrc` config:\n```sh\nalias awsp=\"source _awspp\"\n```\n\n\u003e An alias is used because `_awspp` needs to be sourced to be able to modify the calling shell's environment variables.\n\n## Usage\nStandard usage is just to call `awsp` and select a profile:\n```sh\nawsp\n```\nYou can type to filter the list, or arrow through the shown options. Press \\\u003cEnter\\\u003e to select the highlighted option.\n\nYou can also type a profile with the command to immediately switch:\n```sh\nawsp development\n```\nThis is equivalent to `export AWS_PROFILE='development'`.\n\n## Recommendation: Show your AWS Profile in your shell prompt\nFor better visibility into which AWS Profile is selected it's helpful to configure your prompt to show the value of the env variable `AWS_PROFILE`.\n\n\u003cimg src=\"screenshot.png\" width=\"300\"\u003e\n\n### Examples\nHere is a simplified example:\n```sh\nfunction aws_prof {\n  local profile=\"${AWS_PROFILE:=default}\"\n\n  echo \"aws:(${profile})\"\n}\n\nPS1=\"$PS1 \\$(aws_prof)\"\n```\n\nHere's [@johnnyopao](https://github.com/johnnyopao)'s example using oh-my-zsh themes, with nice colors:\n\n```sh\nfunction aws_prof {\n  local profile=\"${AWS_PROFILE:=default}\"\n\n  echo \"%{$fg_bold[blue]%}aws:(%{$fg[yellow]%}${profile}%{$fg_bold[blue]%})%{$reset_color%} \"\n}\n\nPROMPT='OTHER_PROMPT_STUFF $(aws_prof)'\n```\n\nA more advanced example for bash can be found in my dotfiles at [https://github.com/abyss/dotfiles](https://github.com/abyss/dotfiles/blob/main/bin/aws-prompt.sh).\n\n## Contributing\nIssues and pull requests are welcome. 😄\n\n## License\nThis project and the original work are licensed under the [ISC License](LICENSE.md).\n\nCopyright (c) 2021 Abyss\n\nOriginal Work Copyright (c) 2020 Johnny Opao (@ https://github.com/johnnyopao/awsp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabyss%2Fawsp-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabyss%2Fawsp-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabyss%2Fawsp-plus/lists"}