Skip to main content

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/credentials and ~/.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_profiler-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_profiler-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for aws_profiler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a66d5a1cd2a07947147f7d279ed18d7ea4f3fd51984f7e0f6e4cc2eebc7e3c1d
MD5 d32965a76a23f89b7fa3c5f6b3bde7d2
BLAKE2b-256 b195e05d8f643755f7e6f302b872194e784139a49b393e509242a5a26c3de33d

See more details on using hashes here.

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

Hashes for aws_profiler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0770161a87a9a13c39ee09d774527c777907251ff1b5cef88f191ede34002b44
MD5 09766bbd04c173e20e54f6fd07063f16
BLAKE2b-256 80deefd2d4959146d8a1dbcd55aa078f39ba695f3bcab1bd6003459b78b9046d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page