m-radzikowski / omf-plugin-asp

Oh My Fish plugin for switching between AWS profiles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 git@github.com: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

About

Oh My Fish plugin for switching between AWS profiles.

License:MIT License


Languages

Language:Shell 100.0%