{"id":16111392,"url":"https://github.com/bripkens/aws-vault-prompt","last_synced_at":"2025-04-06T06:29:21.078Z","repository":{"id":66009281,"uuid":"520038945","full_name":"bripkens/aws-vault-prompt","owner":"bripkens","description":"A zsh prompt for 99designs/aws-vault to understand what the active AWS session is and when it expires","archived":false,"fork":false,"pushed_at":"2023-03-27T14:20:18.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T04:02:19.052Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/bripkens.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":"2022-08-01T09:08:01.000Z","updated_at":"2022-12-20T13:10:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"09220b47-c33a-413d-9541-a8a4636a85d7","html_url":"https://github.com/bripkens/aws-vault-prompt","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Faws-vault-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Faws-vault-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Faws-vault-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Faws-vault-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bripkens","download_url":"https://codeload.github.com/bripkens/aws-vault-prompt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445645,"owners_count":20939951,"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":[],"created_at":"2024-10-09T19:42:17.061Z","updated_at":"2025-04-06T06:29:21.061Z","avatar_url":"https://github.com/bripkens.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-vault-prompt\n\nA zsh prompt for [99designs/aws-vault](https://github.com/99designs/aws-vault) to understand what the active AWS session is and when it expires.\n\n## Installation\n\nDownload the latest release from the [releases page](https://github.com/bripkens/aws-vault-prompt/releases) and put it on your `$PATH`.\n\n## Configuration\n\nThe prompt is configured with the help of the `AWS_VAULT_TERM_PROMPT`, `AWS_VAULT_TERM_PROMPT_EXPIRING_SOON` and `AWS_VAULT_TERM_PROMPT_EXPIRED` environment variables.\nAll environments have to be golang format strings. You can use the following placeholders:\n\n - `%[1]s`: Name of the AWS vault\n - `%[2]s`: Name of the default AWS region\n - `%[3]d`: Remaining session duration in minutes.\n\n## Example zsh Config\n\nMake sure to place these lines after: `source $ZSH/oh-my-zsh.sh`\n\n```sh\nexport AWS_VAULT_TERM_PROMPT=\"$fg_bold[blue]aws:($fg_bold[cyan]%[1]s$fg_bold[blue])$reset_color \"\nexport AWS_VAULT_TERM_PROMPT_EXPIRING_SOON=\"$fg_bold[blue]aws:($fg_bold[yellow]%[1]s ⏱  %[3]dm$fg_bold[blue])$reset_color \"\nexport AWS_VAULT_TERM_PROMPT_EXPIRED=\"$fg_bold[blue]aws:($fg_bold[red]%[1]s ⚠️  $fg_bold[blue])$reset_color \"\nPROMPT=$PROMPT'$(aws-vault-prompt)'\n```\n\nThis configuration will result in the following prompt:\n\n### Valid Session\n\n\u003cimg width=\"161\" alt=\"Screenshot 2022-10-17 at 08 36 16\" src=\"https://user-images.githubusercontent.com/596443/196105703-13492b71-3c7c-4e2b-a1e8-1b5759762583.png\"\u003e\n\n### Session that exprires soon\n\u003cimg width=\"205\" alt=\"Screenshot 2022-10-17 at 08 36 26\" src=\"https://user-images.githubusercontent.com/596443/196105708-c53d4d6e-c18b-4822-ac6d-8efee08a8f0f.png\"\u003e\n\n### Expired Session\n\u003cimg width=\"192\" alt=\"Screenshot 2022-10-17 at 08 36 33\" src=\"https://user-images.githubusercontent.com/596443/196105711-1ba149a4-9819-4033-9a47-e0c9fa28afd7.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbripkens%2Faws-vault-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbripkens%2Faws-vault-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbripkens%2Faws-vault-prompt/lists"}