mitchellh/vagrant-aws

Unknow region

sobi3ch opened this issue · 1 comments

I was trying several times but without success. I've setup my access and secrets but nothing helps. For vagrant it looks like region doesn't exists
With this Vagrantfile

Vagrant.configure(2) do |config|
  config.vm.box = 'packer_amazon-ebs_aws'

  config.vm.provider :aws do |aws, override|
    #aws.access_key_id = 'YOUR KEY'
    #aws.secret_access_key = 'YOUR SECRET KEY'
    aws.access_key_id = ENV['AWS_ACCESS_KEY_ID']
    aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
    #aws.session_token = 'SESSION TOKEN'
    aws.keypair_name = 'awsstockholm'
    aws.region = 'eu-north-1'
    aws.ami = 'ami-03aad3c3037c4cd11'
    override.ssh.username = 'ubuntu'
    override.ssh.private_key_path = '~/.ssh/awsstockholm.pem'
  end
end

I'm getting this error:

$ vagrant up --provider=aws
/home/me/.vagrant.d/gems/2.4.5/gems/fog-aws-2.0.1/lib/fog/aws.rb:237:in `validate_region!': Unknown region: "eu-north-1" (ArgumentError)

Closing, duplicated here #555