diff options
author | Rob Vadai <rvadai@segence.com> | 2020-11-11 15:14:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 16:14:57 +0100 |
commit | 1beac5958ede29855ef2ac4313ada83ed37f5ea8 (patch) | |
tree | 53514cd3bb4dc69535008add5a8061f06d674a96 /plugins | |
parent | dc4692b53e4a1dc512d405f36f2d2af30c66304b (diff) | |
download | zsh-1beac5958ede29855ef2ac4313ada83ed37f5ea8.tar.gz zsh-1beac5958ede29855ef2ac4313ada83ed37f5ea8.tar.bz2 zsh-1beac5958ede29855ef2ac4313ada83ed37f5ea8.zip |
docs(aws): add config examples (#9422)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/aws/README.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/aws/README.md b/plugins/aws/README.md index 4c2ae96e5..011bbd8b4 100644 --- a/plugins/aws/README.md +++ b/plugins/aws/README.md @@ -43,3 +43,33 @@ the current `$AWS_PROFILE`. It uses two variables to control how that is shown: * ZSH_THEME_AWS_PREFIX: sets the prefix of the AWS_PROFILE. Defaults to `<aws:`. * ZSH_THEME_AWS_SUFFIX: sets the suffix of the AWS_PROFILE. Defaults to `>`. + +## Configuration + +[Configuration and credential file settings](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) by AWS + +### Scenario: IAM roles with a source profile and MFA authentication + +Source profile credentials in `~/.aws/credentials`: + +``` +[source-profile-name] +aws_access_key_id = ... +aws_secret_access_key = ... +``` + +Role configuration in `~/.aws/config`: + +``` +[profile source-profile-name] +mfa_serial = arn:aws:iam::111111111111:mfa/myuser +region = us-east-1 +output = json + +[profile profile-with-role] +role_arn = arn:aws:iam::9999999999999:role/myrole +mfa_serial = arn:aws:iam::111111111111:mfa/myuser +source_profile = source-profile-name +region = us-east-1 +output = json +``` |