matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
963 stars 79 forks source link

Support aws-vault instead of named AWS profiles #205

Closed kouk closed 5 years ago

kouk commented 5 years ago

Description

Update the AWS function to optionally retrieve the profile name from the AWS_VAULT environment variable instead of AWS_PROFILE.

Motivation and Context

When using 99designs/aws-vault the variable AWS_VAULT is set to indicate which profile has been configured in the environment and the AWS_PROFILE environment variable is not set. This commits makes AWS_VAULT override the profile name.

Types of changes

How Has This Been Tested?

Checklist: