omf-plugin-asp
omf-plugin-asp copied to clipboard
Oh My Fish plugin for switching between AWS profiles.
asp
A plugin for Oh My Fish.
Enables quick switching between AWS profiles.
Prerequisites
Install
omf install [email protected]:mgoodness/plugin-asp.git
Usage
Set profile
asp <aws_profile> [region]
asp
- AWS Set Profile
Sets $AWS_PROFILE
and $AWS_DEFAULT_PROFILE
variables.
The optional region value can be used if you wish to override the default region
configured for the profile.
Get selected profile
agp
agp
- AWS Get Profile
Echoes $AWS_PROFILE
and $AWS_DEFAULT_REGION
.
Clear selected profile
acp
acp
- AWS Clear Profile
Clears variables for selected profile and assumed role.
Assume role
aar <role_arn>
aar
- AWS Assume Role
Performs STS Assume Role call
and sets obtained $AWS_ACCESS_KEY_ID
, $AWS_SECRET_ACCESS_KEY
and $AWS_SESSION_TOKEN
variables.
To clear assumed role variables execute either acp
or asp
command.
License
MIT © Michael Goodness et al