Open memoryleak opened 6 years ago
running into this same problem running vagrant on ubuntu 16.04
Vagrant (2.0.4) vagrant-aws (0.7.2)
Same here - appears env variable AWS_DEFAULT_REGION
can be used as a workaround in the interim.
Same problem here, I would prefer to avoid overriding in environment variables because it is not easy to tell what the behavior will be. Shouldn't the config region option override the aws config file?
Is this really still open? I couldn't do a multi-region deployment due to this same reason.
It looks like the problem is if you don't specify an access key or secret key explicitly, the plugin will fetch them from your environment. When doing this, it unfortunately also seems to take the liberty of setting your region as well.
https://github.com/mitchellh/vagrant-aws/blob/master/lib/vagrant-aws/config.rb#L330
Versions
Vagrant 2.0.2
vagrant-aws (0.7.2)
Vagrantfile
Expected: AWS provider using eu-west-1 as region.
Actual: Region us-east-1 always used