Skip to content

m-radzikowski/omf-plugin-asp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asp

A plugin for Oh My Fish.

MIT License Fish Shell Version Oh My Fish Framework


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