Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)