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
bf303965
Unverified
Commit
bf303965
authored
Nov 27, 2021
by
Nicholas Hawkes
Committed by
GitHub
Nov 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(aws): Adds the login option for AWS SSO (#9921)
parent
58478d08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
README.md
plugins/aws/README.md
+1
-0
aws.plugin.zsh
plugins/aws/aws.plugin.zsh
+4
-0
No files found.
plugins/aws/README.md
View file @
bf303965
...
@@ -14,6 +14,7 @@ plugins=(... aws)
...
@@ -14,6 +14,7 @@ plugins=(... aws)
*
`asp [<profile>]`
: sets
`$AWS_PROFILE`
and
`$AWS_DEFAULT_PROFILE`
(legacy) to
`<profile>`
.
*
`asp [<profile>]`
: sets
`$AWS_PROFILE`
and
`$AWS_DEFAULT_PROFILE`
(legacy) to
`<profile>`
.
It also sets
`$AWS_EB_PROFILE`
to
`<profile>`
for the Elastic Beanstalk CLI.
It also sets
`$AWS_EB_PROFILE`
to
`<profile>`
for the Elastic Beanstalk CLI.
Run
`asp`
without arguments to clear the profile.
Run
`asp`
without arguments to clear the profile.
*
`asp [<profile>] login`
: If AWS SSO has been configured in your aws profile, it will run the
`aws sso login`
command following profile selection.
*
`acp [<profile>]`
: in addition to
`asp`
functionality, it actually changes the profile by
*
`acp [<profile>]`
: in addition to
`asp`
functionality, it actually changes the profile by
assuming the role specified in the
`<profile>`
configuration. It supports MFA and sets
assuming the role specified in the
`<profile>`
configuration. It supports MFA and sets
...
...
plugins/aws/aws.plugin.zsh
View file @
bf303965
...
@@ -21,6 +21,10 @@ function asp() {
...
@@ -21,6 +21,10 @@ function asp() {
export
AWS_DEFAULT_PROFILE
=
$1
export
AWS_DEFAULT_PROFILE
=
$1
export
AWS_PROFILE
=
$1
export
AWS_PROFILE
=
$1
export
AWS_EB_PROFILE
=
$1
export
AWS_EB_PROFILE
=
$1
if
[[
"
$2
"
==
"login"
]]
;
then
aws sso login
fi
}
}
# AWS profile switch
# AWS profile switch
...
...
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