|
5 | 5 | </p> |
6 | 6 |
|
7 | 7 | --- |
| 8 | + |
8 | 9 |  |
9 | 10 | [](/LICENSE) |
10 | 11 | [](https://github.com/pre-commit/pre-commit) |
|
16 | 17 | [](https://somsubhra.github.io/github-release-stats/?username=containerscrew&repository=aws-sso-rs) |
17 | 18 |  |
18 | 19 |  |
| 20 | + |
19 | 21 | --- |
| 22 | + |
20 | 23 | <p align="center"> |
21 | 24 | <h3 align="center">$ aws-sso-rs </h3> |
22 | 25 | <img src="./assets/example-1.png" alt="example"/> |
@@ -85,8 +88,8 @@ cargo build --release |
85 | 88 | aws-sso-rs --start-url https://mycompany.awsapps.com/start --aws-region eu-west-1 |
86 | 89 | ``` |
87 | 90 |
|
88 | | -* `--start-url` is the URL of your AWS SSO endpoint, which you can find in your AWS SSO console. |
89 | | -* `--aws-region` is the AWS region where your SSO is configured, e.g., `eu-west-1`, `us-east-1`, etc. |
| 91 | +- `--start-url` is the URL of your AWS SSO endpoint, which you can find in your AWS SSO console. |
| 92 | +- `--aws-region` is the AWS region where your SSO is configured, e.g., `eu-west-1`, `us-east-1`, etc. |
90 | 93 |
|
91 | 94 | > [!NOTE] |
92 | 95 | > This command will open your default browser. You will need to approve manually the authentication. |
@@ -136,6 +139,16 @@ aws-sso-rs --start-url https://mycompany.awsapps.com/start --aws-region eu-west- |
136 | 139 | aws-sso-rs --start-url https://mycompany.awsapps.com/start --aws-region eu-west-1 --log-level debug |
137 | 140 | ``` |
138 | 141 |
|
| 142 | +## Workers |
| 143 | + |
| 144 | +If you have for example 40 accounts in your AWS organization, you can use the `--workers` flag to limit the number of concurrent tasks. This can help you avoid overwhelming the AWS API with too many requests (429) at once. More workers will speed up the process of fetching credentials for all accounts, but it may also lead to throttling if you set it too high. |
| 145 | + |
| 146 | +```shell |
| 147 | +aws-sso-rs --start-url https://mycompany.awsapps.com/start --aws-region eu-west-1 -w 10 |
| 148 | +``` |
| 149 | + |
| 150 | +> Default value is `5`, and the maximum value is `20`. You can change it by modifying the `--workers` flag. |
| 151 | +
|
139 | 152 | # Switching `AWS_PROFILE` in your terminal |
140 | 153 |
|
141 | 154 | ## Zsh/Bash shell |
|
0 commit comments