Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kobebigs/aws-vault-switch
A simple Go CLI app that extends aws-vault to enable seamless switching between AWS profiles
https://github.com/kobebigs/aws-vault-switch
aws aws-iam aws-vault credentials go golang
Last synced: 12 days ago
JSON representation
A simple Go CLI app that extends aws-vault to enable seamless switching between AWS profiles
- Host: GitHub
- URL: https://github.com/kobebigs/aws-vault-switch
- Owner: kobeBigs
- License: mit
- Created: 2024-07-08T17:44:04.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-09T09:37:11.000Z (6 months ago)
- Last Synced: 2024-09-15T08:57:20.181Z (3 months ago)
- Topics: aws, aws-iam, aws-vault, credentials, go, golang
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-vault-switch
A simple Go CLI app that extends [aws-vault](https://github.com/99designs/aws-vault) functionality to enable seamless switching between AWS profiles without the need to exit the current shell session.
Written by [Kobe Subramaniam](https://kobebigs.com).
## Key Features
- **Profile Listing**: List all available AWS profiles managed by `aws-vault`.
- **Profile Switching**: Switch between AWS profiles without exiting the current shell session, maintaining your working context and improving efficiency.
- **Easy Integration**: Built using Go and [Cobra](https://github.com/spf13/cobra-cli) library, this tool integrates smoothly with existing `aws-vault` setup and enhances their capabilities.## Installation
Currently compatible on Mac & Linux only.
### Linux
``` bash
wget https://github.com/kobeBigs/aws-vault-switch/releases/download/v0.1.0/aws-vault-switch-linux.tar.gz
tar -xzvf aws-vault-switch-linux.tar.gz
sudo mv aws-vault-switch-linux /usr/local/bin/aws-vault-switch
```### Mac (ARM64)
``` bash
wget https://github.com/kobeBigs/aws-vault-switch/releases/download/v0.1.0/aws-vault-switch-mac-arm.tar.gz
tar -xzvf aws-vault-switch-mac-arm.tar.gz
sudo mv aws-vault-switch-mac /usr/local/bin/aws-vault-switch
```### Mac
``` bash
wget https://github.com/kobeBigs/aws-vault-switch/releases/download/v0.1.0/aws-vault-switch-mac.tar.gz
tar -xzvf aws-vault-switch-mac.tar.gz
sudo mv aws-vault-switch-mac /usr/local/bin/aws-vault-switch
```Clone the repository and build the application
``` bash
git clone https://github.com/kobebigs/aws-vault-switch
cd aws-vault-switch
go build -o aws-vault-switch
```## Usage
1. Run the command
``` bash
aws-vault-switch
```2. Select profile to switch to
![image](https://github.com/kobeBigs/aws-vault-switch/assets/461414/6133f620-5d20-43e6-9924-376ddb7495e4)