Skip to main content

awsx

Project description


AWS Role Token Fetcher with CLI Options

This script facilitates AWS users in retrieving their identity and temporary security token. By leveraging the AWS SDK for Python (Boto3) and Click (a Python package for creating command-line interfaces), the script efficiently fetches the identity of the caller and the temporary credentials from AWS.

Features:

  1. Retrieve Caller Identity: The script uses the Security Token Service (STS) to get the User ID and Amazon Resource Name (ARN) of the caller.
  2. Fetch Temporary Credentials: It obtains the current session's access key, secret key, and token, allowing for secure AWS operations without long-term access keys.
  3. Command-line Options:
    • --profile: Specify the AWS CLI profile name. This is useful if you have multiple AWS profiles and want to use a specific one.
    • --region: Define the AWS region you want to operate in. Default is set to cn-north-1.

Usage:

awsx --profile your_profile_name --region desired_region

If no options are specified, the script uses the default settings.


Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

awsx-0.0.2-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

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