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
- Clone the repository:
git clone https://github.com/vavasilva/aws-credentials-clipboard-updater.git
cd aws-credentials-clipboard-updater
- 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
Supported Formats
The tool accepts credentials in multiple formats:
AWS STS Response (JSON)
Direct output from aws sts assume-role or similar commands:
{
"Credentials": {
"AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"SessionToken": "AQoDYXdzEJr..."
}
}
Simple JSON (PascalCase)
{
"AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"SessionToken": "AQoDYXdzEJr..."
}
Simple JSON (snake_case)
{
"aws_access_key_id": "AKIAIOSFODNN7EXAMPLE",
"aws_secret_access_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"aws_session_token": "AQoDYXdzEJr..."
}
INI Format
[profile_name]
aws_access_key_id = AKIAIOSFODNN7EXAMPLE
aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
aws_session_token = AQoDYXdzEJr...
Note:
SessionToken/aws_session_tokenis optional for permanent credentials.
Usage
Update AWS Profile
From clipboard (copy credentials first, then run):
awscreds update --profile my_profile
With explicit data:
awscreds update --profile my_profile --data '{"AccessKeyId": "AKIA...", "SecretAccessKey": "secret...", "SessionToken": "token..."}'
List Profiles
awscreds list
Delete Profile
awscreds delete --profile my_profile
Examples
Example 1: Update profile from AWS STS assume-role
# Copy the output from AWS CLI to clipboard
aws sts assume-role --role-arn arn:aws:iam::123456789:role/MyRole --role-session-name session1 | pbcopy
# Update profile
awscreds update --profile dev
Example 2: Quick update with inline JSON
awscreds update --profile prod --data '{
"AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
}'
Example 3: Update from SSO/Identity Center portal
- Copy credentials from AWS SSO portal (usually in INI format)
- Run:
awscreds update --profile sso-dev
Contributing
Contributions welcome! Please open an issue or submit a pull request on GitHub.
Metadata
Release files for aws-credentials-clipboard-updater 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aws_credentials_clipboard_updater-1.0.7.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_credentials_clipboard_updater-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / aws_credentials_clipboard_updater-1.0.7.tar.gz
| Download URL | aws_credentials_clipboard_updater-1.0.7.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22da3097777f6dfec0c6366b807cd36ab7a3a1302229b95f5da4f72d0199344e
|
|
BLAKE2b-256 checksum How to use checksums |
19cd425de3b62cac9a197ecb0cee8ede97de74500bd0ada426586a715c850323
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Release files / aws_credentials_clipboard_updater-1.0.7-py3-none-any.whl
| Download URL | aws_credentials_clipboard_updater-1.0.7-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e76281da5631569b3106b01b15d7ba8e9604703dfe66250ad639e0ab8d3e6b2
|
|
BLAKE2b-256 checksum How to use checksums |
f66f8f11cee1f78c8959c87ccca616100e3384943dce28680d7f8d708cc0feeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|