aws-sts-get-mfa-profile-1.2.2


توضیحات

A library to setup an AWS CLI profile for an account with MFA enabled
ویژگی مقدار
سیستم عامل -
نام فایل aws-sts-get-mfa-profile-1.2.2
نام aws-sts-get-mfa-profile
نسخه کتابخانه 1.2.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Inception Consulting Engineers
ایمیل نویسنده hello@inceptiongroup.com.au
آدرس صفحه اصلی https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/aws-sts-get-mfa-profile
آدرس اینترنتی https://pypi.org/project/aws-sts-get-mfa-profile/
مجوز Apache 2.0
# AWS STS Get MFA Profile Use this package to automatically setup an MFA enabled profile for AWS CLI 1. Install AWS CLI 2. Sign up for MFA in the AWS IAM Management console (if you haven't already) and note the MFA ARN. ![AWS Console MFA ARN](./mfa-arn.png) 3. Create an access key in the AWS IAM Management console (if you haven't already) and note the access key id and secret. ![AWS Console CLI Access Key](./access-key-cli.png) 4. Create a credential text file profile in your home directory (`'C:\Users\SamuelMercer\.aws\credentials'`) by running ```bash aws configure --profile mfa ``` 5. Add your `mfa_serial` manually by running ```bash aws configure set mfa_serial --profile mfa "arn:aws:iam::467792...:mfa/..." ``` 5. Install the python package using pip ``` > python -m pip install aws-sts-get-mfa-profile ``` 6. Run the script `get-sts-token.py` using the required length of token in seconds (don't do more than 1 day == 86400 seconds) ``` > get-sts-token.py ``` 7. When making AWS CLI calls from now on it should work, e.g. ``` > aws iam list-users { "Users": [ { ... ```


نیازمندی

مقدار نام
- boto3
- pytz


نحوه نصب


نصب پکیج whl aws-sts-get-mfa-profile-1.2.2:

    pip install aws-sts-get-mfa-profile-1.2.2.whl


نصب پکیج tar.gz aws-sts-get-mfa-profile-1.2.2:

    pip install aws-sts-get-mfa-profile-1.2.2.tar.gz