A simple interactive profile picker
npm install aws-profile-picker
or
yarn add aws-profile-picker
const awsProfile = require('aws-profile-picker');
awsProfile.select();
Select from a set of valid profiles
It's possible to cancel an attempt to select. aws-profile-picker is designed for interactive CLI commands. Cancellig will cause the process to exit
When no profiles are configured, the process will also exit.