mheffner / awsam

Amazon Web Services Account Manager (modeled after 'rvm')
MIT License
117 stars 8 forks source link

AWS Cli requiring AWS_DEFAULT_REGION #37

Open genofedanzo opened 6 years ago

genofedanzo commented 6 years ago

It seems that there was a change recently with aws cli that is requiring the region to be set. This can be set via env var AWS_DEFAULT_REGION. Since aem add asks for a region can this be exposed as a value for AWS_DEFAULT_REGION?

mheffner commented 6 years ago

@genofedanzo Yes, this is exposed from aenv:

$ aenv env | grep REGION
AWS_DEFAULT_REGION=us-east-2
genofedanzo commented 6 years ago

I'm realizing that yesterday when I first looked into this problem I could see that there was shell var for $AWS_DEFAULT_REGION but it was not an env var so it seemed to be ignored by aws cli.