-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c88055
commit e26dda6
Showing
1 changed file
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,36 @@ | ||
# ewcli | ||
# ewcli | ||
|
||
ewcli it's a small tool to simplify some day to day tasks such as getting | ||
environment variables with AWS credentals from an AWS SAML assertion. | ||
|
||
## Usage | ||
|
||
ewcli it's based on subcommands, at the moment is only available the `aws saml` | ||
subcommand. | ||
|
||
### ewcli aws saml | ||
|
||
``` | ||
Usage: | ||
ewcli aws saml [flags] | ||
Flags: | ||
-h, --help help for saml | ||
--print-env-creds Print Credentials as Environment Variables | ||
-a, --saml-account-id string Pass an AWS Account ID | ||
-f, --saml-file string Pass a path to the file that contains SAML Assertion (default "/tmp/saml") | ||
--saml-role-name string Pass an AWS IAM Role Name | ||
Global Flags: | ||
--config string config file (default is $HOME/.ewcli.yaml) | ||
-r, --region string Pass an AWS region (default "us-east-1") | ||
``` | ||
|
||
#### Example | ||
|
||
``` sh | ||
> ewcli aws saml -f /tmp/saml --saml-account-id 123456789 --saml-role-name GoogleReadOnlyAccess --print-env-creds | ||
export AWS_ACCESS_KEY_ID=... | ||
export AWS_SECRET_ACCESS_KEY=... | ||
export AWS_SESSION_TOKEN=... | ||
``` |