Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AWS Profile Switcher

A simple tool for managing AWS CLI profiles, available in two flavors:

  • Shell Script version: lightweight, terminal-based utility for quick profile switching and Docker ECR login.
  • GUI (Tkinter) version: user-friendly graphical interface for selecting profiles and managing AWS credentials.

βš™ Versions

1. Shell Script (shell/aws_profile)

  • Lists AWS profiles from ~/.aws/credentials
  • Prompts to select or add a profile
  • Sets AWS_PROFILE and AWS_REGION in the current shell
  • Validates credentials with AWS STS
  • Optionally logs in to Docker ECR if docker is available

Usage:

source shell/aws_profile

Add this alias to ~/.bashrc:

echo 'alias switchaws="source ~/.local/bin/aws_profile"' >> ~/.bashrc

2. GUI Application (gui/aws_profile_gui.py)

  • Uses Python and Tkinter to provide a dropdown UI
  • Detects available AWS profiles
  • Sets selected profile and region in the environment
  • Attempts to login to Docker ECR after switching
  • Auto-closes once a profile is activated

Requirements:

  • python3, python3-tk, xdotool, awscli

Launch:

python3 gui/aws_profile_gui.py

πŸ”§ Installation Options

  • Use as local scripts
  • Package as .deb installers (see build.md for packaging instructions)

πŸ“‘ Author

Alden Park

About

Easily switch AWS CLI profiles (Shell + Tkinter GUI versions)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages