A plugin for Oh My Fish.
Enables quick switching between AWS profiles.
omf install git@github.com:mgoodness/plugin-asp.git
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.
agp
agp
- AWS Get Profile
Echoes $AWS_PROFILE
and $AWS_DEFAULT_REGION
.
acp
acp
- AWS Clear Profile
Clears variables for selected profile and assumed 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.
MIT © Michael Goodness et al