Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
1beac595
Unverified
Commit
1beac595
authored
Nov 11, 2020
by
Rob Vadai
Committed by
GitHub
Nov 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(aws): add config examples (#9422)
parent
dc4692b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
README.md
plugins/aws/README.md
+30
-0
No files found.
plugins/aws/README.md
View file @
1beac595
...
...
@@ -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
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment