CLI authentication for AWS credential exchange
Project description
CK-Prism-CLI - Authentication for AWS Credentials
Authenticates users via CloudKeeper Prism and exchanges tokens for AWS credentials.
Operating System Support
macOSLinuxWSL on WindowsWindows
Python Support
Python 3.6 and above
Prerequisites
Software Prerequisites
- Python 3.6 or above
- AWS CLI v2 (optional, for using credentials)
Installation
pip3 install ck-prism
Verify installation:
ck-prism help
If command not found, add Python packages folder to PATH:
- Linux:
/home/{username}/.local/bin - macOS:
/Users/{username}/Library/Python/{Python Version}/bin
Configuration
Interactive Configuration
ck-prism configure
You'll be prompted for:
- Prism Domain: This can be found in your Prism instance - "https://prism.cloudkeeper.com" , "https://myprism.xyz.in"
- Prism Tenant: This can be found in your Prism SSO Url - "https://sso.prism.cloudkeeper.com' here, 'sso' is your Prism tenant
- AWS Region: Default is
us-east-1
Manual Configuration
Edit ~/.ck-prism/config.json:
{
"default": {
"realm": "cloudkeeper",
"client_id": "ckauth-cli",
"region": "us-east-1",
"output": "json",
"role_arn": "arn:aws:iam::123456789012:role/CKAuth-Admin,arn:aws:iam::123456789012:saml-provider/CKAuthProvider",
"account_id": "123456789012",
"role_name": "CKAuth-Admin"
}
}
Named Profiles
ck-prism configure --profile production
Usage
Default Profile
ck-prism login
Named Profile
ck-prism login --profile production
The tool will:
- Check for cached tokens
- Refresh expired tokens automatically
- Open browser for initial authentication (if needed)
- Exchange token for AWS credentials
- Write credentials to
~/.aws/credentials
Using AWS Credentials
After login, use AWS CLI normally:
aws s3 ls
aws ec2 describe-instances
Or with named profile:
aws s3 ls --profile production
Token Caching
Tokens are cached in ~/.ck-prism/tokens/ and automatically refreshed when needed.
Troubleshooting
- Command not found: Ensure Python packages directory is in PATH
- Authentication failed: Re-run
ck-prism login - Expired credentials: Run
ck-prism loginagain to refresh
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
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 ck_prism-1.3.0.tar.gz.
File metadata
- Download URL: ck_prism-1.3.0.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3a0115f149f602e67a2ec7f709e1d67c94b347f8101013997e706bfce2df0a8
|
|
| MD5 |
0e24bfd0e1a5e8bdd47878b40b6a016d
|
|
| BLAKE2b-256 |
7e8a7a37f336d136e47f9dc6a1f434c3f3f42302aa51d724525b50e936b354db
|
File details
Details for the file ck_prism-1.3.0-py3-none-any.whl.
File metadata
- Download URL: ck_prism-1.3.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6410e9e89ee7145f24ccf73821ea784686fff4fed0b8c1229703e1aad14c2e71
|
|
| MD5 |
b3d4aa286fe2669aa9f28d63aad41508
|
|
| BLAKE2b-256 |
503edf05ce45cbd3c547da49840a34c98b0b109efd33fa97b533f31069817fb8
|