tachoknight / AWSCred

Small Python script to list and change AWS profiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWSCred

This is a small script I wrote for fun to help me manage my various AWS accounts. It can list the credentials in your $HOME/.aws/credentials file, and it can also switch between them.

It modifies the $HOME/.aws/credentials file directly, so it's not a good idea to run it while you have other programs that are using the default profile in the credentials file.

Installation

The script is written in Python 3 so you'll that installed. I put the script in my $HOME/bin directory, but you can put it wherever you want. Just make sure that directory is in your $PATH.

Usage

awscred - Lists the credentials in your credentials file

awscred <profile> - Switches to the specified profile

About

Small Python script to list and change AWS profiles

License:MIT License


Languages

Language:Python 100.0%