A CLI tool to list AWS profiles and check their credential status
Project description
AWS Profiler
A command-line tool to list all AWS profiles and check their credential status.
Features
- 📋 Lists all AWS profiles from
~/.aws/credentialsand~/.aws/config - 🔍 Retrieves account information for each profile
- ✅ Checks if credentials are active or expired
- 📊 Displays results in a formatted table
- 📈 Provides summary statistics
Installation
Install from source
pip install -e .
Install from PyPI (when published)
pip install aws-profiler
Usage
After installation, run the tool:
aws-profiler
The tool will scan your AWS configuration files and display a table with:
- Profile name
- Account ID
- User/Role name
- Credential type (User/Role)
- Status (Active/Expired/Error)
Example Output
AWS Profiler
================================================================================
Found 3 profile(s)
Checking profile: default... [Active]
Checking profile: staging... [Active]
Checking profile: production... [Expired]
+-------------+--------------+------------+------+----------+
| Profile | Account ID | User/Role | Type | Status |
+=============+==============+============+======+==========+
| default | 123456789012 | admin | User | Active |
+-------------+--------------+------------+------+----------+
| staging | 234567890123 | dev-role | Role | Active |
+-------------+--------------+------------+------+----------+
| production | N/A | N/A | N/A | Expired |
+-------------+--------------+------------+------+----------+
Summary: 2 active, 1 expired, 0 error/no credentials
Status Values
- Active: Credentials are valid and working
- Expired: Token or credentials have expired
- No Credentials: Profile exists but no credentials are configured
- Error: Other authentication or authorization errors
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_profiler-1.0.0.tar.gz.
File metadata
- Download URL: aws_profiler-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a66d5a1cd2a07947147f7d279ed18d7ea4f3fd51984f7e0f6e4cc2eebc7e3c1d
|
|
| MD5 |
d32965a76a23f89b7fa3c5f6b3bde7d2
|
|
| BLAKE2b-256 |
b195e05d8f643755f7e6f302b872194e784139a49b393e509242a5a26c3de33d
|
File details
Details for the file aws_profiler-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aws_profiler-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0770161a87a9a13c39ee09d774527c777907251ff1b5cef88f191ede34002b44
|
|
| MD5 |
09766bbd04c173e20e54f6fd07063f16
|
|
| BLAKE2b-256 |
80deefd2d4959146d8a1dbcd55aa078f39ba695f3bcab1bd6003459b78b9046d
|