david's aws util
Project description
DAVID L. Python Package
Usage
Get AWS Session Credentials by sts:assume_role
from aws_util.aws import get_sts_assume_role
sts_credentials = get_sts_assume_role(aws_access_key, aws_secret_key, role_arn, role_session_name='aws_session'):
It return above dict.
type: dict
result =
{'AccessKeyId': 'ASI...',
'SecretAccessKey': 'o8Y...',
'SessionToken': 'Fwo...',
'Expiration': datetime.datetime(2099, 12, 31, 00, 00, 00, tzinfo=tzutc())}
Installation
$ pip install david_aws_util --upgrade
If you would like to install submodules for Individual.
$ pip install david_aws_util[extra] --upgrade
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
david_aws_util-1.0.9.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file david_aws_util-1.0.9.tar.gz
.
File metadata
- Download URL: david_aws_util-1.0.9.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aceec2b2339b539919843477c646e9347db00f1b358cb9ef1572bed74a277277 |
|
MD5 | 48f069b6d544f283c62278f6e2bd2eec |
|
BLAKE2b-256 | 76c81afcf1e00abe8df4413e7df9fc43ffe941122f8686685f9b5f1abcb9930e |
File details
Details for the file david_aws_util-1.0.9-py3-none-any.whl
.
File metadata
- Download URL: david_aws_util-1.0.9-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41317e1a7258b6bc3463be0efc3259529675c2f800d038da9060eebcf6657f6d |
|
MD5 | 33a57f929ca867a0b3d49abafd197b52 |
|
BLAKE2b-256 | 5c566c024b75f9760653b36adb4b34b8fb052b5857f92d9a2871289dcf41cdf4 |