Skip to content

This project provides a Python command-line tool (CLI) to update the `.aws/credentials` file based on a JSON copied to the clipboard. The tool is useful when you want to quickly update your AWS credentials without manually editing the file.

License

Notifications You must be signed in to change notification settings

vavasilva/aws-credentials-clipboard-updater

Repository files navigation

AWS Credentials Clipboard Updater

A command-line utility to manage AWS credentials. Update, list, or delete profiles in your AWS credentials file efficiently.

Installation

Homebrew (macOS/Linux)

brew tap vavasilva/tap
brew install aws-credentials-clipboard-updater

pip (Global)

pip install git+https://github.com/vavasilva/aws-credentials-clipboard-updater.git

From Source

Prerequisites

  • Python 3.7 or higher
  • Virtual environment recommended

Steps

  1. Clone the repository:
git clone https://github.com/vavasilva/aws-credentials-clipboard-updater.git
cd aws-credentials-clipboard-updater
  1. Install:
pip install -e .

System Dependencies

For clipboard functionality on Linux systems:

  • Debian/Ubuntu: sudo apt-get install xclip xsel
  • Fedora: sudo dnf install xclip xsel
  • Arch: sudo pacman -S xclip xsel

Usage

Update AWS Profile

Update a profile with explicit data:

awscreds update --profile my_profile --data '{"aws_access_key_id": "123", "aws_secret_access_key": "456", "aws_session_token": "789"}'

Or read from clipboard:

awscreds update --profile my_profile

List Profiles

List all configured profiles:

awscreds list

Delete Profile

Delete a specific profile:

awscreds delete

Contributing

Contributions welcome! Please open an issue or submit a pull request on GitHub.

About

This project provides a Python command-line tool (CLI) to update the `.aws/credentials` file based on a JSON copied to the clipboard. The tool is useful when you want to quickly update your AWS credentials without manually editing the file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •