aws-cli-sso-0.1.1
توضیحات
A tool that you can use to SSO via AWS Identity Providers and reload aws session in credentials file.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | aws-cli-sso-0.1.1 |
| نام | aws-cli-sso |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Rohit Garg |
| ایمیل نویسنده | rohitgarg19@gmail.com |
| آدرس صفحه اصلی | https://github.com/rohitggarg/aws-cli-sso |
| آدرس اینترنتی | https://pypi.org/project/aws-cli-sso/ |
| مجوز | MIT |
# AWS SAML Login
Works cross platform (Win, Unix, MacOS)
Was having a real hard time trying to get cli credentials via SAML SSO so thought about writing this small utility.
I can run this daily every morning to get a 12 hour session for myself. Hope you'd find it interesting and useful.
Looking forward to contributions!!
## Prerequisites
Need to install
* Chromedriver [?](https://chromedriver.chromium.org/downloads)
* Google Chrome [?](https://www.google.com/chrome/thank-you.html?statcb=0&installdataindex=empty&defaultbrowser=0)
* Python 2/3 [?](https://www.python.org/downloads/)
* AWS Cli [?](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html)
Make sure all the above software are setup properly in `PATH` environment variable
## Executing
Add properties to your AWS credentials file
```ini
[some-profile]
saml_sso_url = <url you use for saml, either okta saml or whatever you use>
saml_role_arn = <your iam role to assume>
saml_principal_arn = <your saml idp arn>
saml_duration = <duration of session in seconds, check iam role for maximum value>
```
Run
```shell
python -m aws-saml
```
Warning: This will change your credentials file. If you don't want to do that, you can use `DRY_RUN=Y python -m aws-saml` which will only print the values.
## Installation
```pip install aws-cli-sso```
## Local development/testing
* ```pip install -r requirements.txt```
* ```python -m aws-saml```
نیازمندی
| مقدار | نام |
|---|---|
| - | selenium |
| - | boto3 |
نحوه نصب
نصب پکیج whl aws-cli-sso-0.1.1:
pip install aws-cli-sso-0.1.1.whl
نصب پکیج tar.gz aws-cli-sso-0.1.1:
pip install aws-cli-sso-0.1.1.tar.gz