vagrant-aws
vagrant-aws copied to clipboard
puzzling behaviour: AWS Provider: * An AMI must be configured via "ami"
Using vagrant 1.4.3
with vagrant-aws 0.4.1
Issuing vagrant up --provider=aws
results in this error
AWS Provider:
* An AMI must be configured via "ami"
even though the ami id is encoded in the box's internal Vagrantfile. This gist shows contents of 2 boxes both generated by packer vagrant postprocessor. https://gist.github.com/zelig/8967180
Running on the example box and using the same Vagrantfile (with a different box name), everything works fine, which is really puzzling since the two boxes are structurally identical.
I am really confused why you would need to specify ami in the vagrantfile when it is in the box. Any help appreciated.
@zelig you don't specify region in your config, so it defaults to us-east-1
. The example box specifies an AMI in that region, but the "juiser-core" only in eu-west-1
. So either you have to copy/build that box into us-east-1 too, or set aws.region = "eu-west.1"
.
@tmatilai epiphany! thank you for the explanation.
so I found the error message in https://github.com/mitchellh/vagrant-aws/blob/master/lib/vagrant-aws/config.rb#L341 This could be improved by adding info on what region is assumed. what do you think ? https://github.com/mitchellh/vagrant-aws/pull/204
I'm having the same issue, this is my Vagrantfile: https://gist.github.com/hyperfocus1337/9170406
The example from the readme gives me this error.
Full error:
Printer:aws hyper$ vagrant up --provider=aws Bringing machine 'default' up with 'aws' provider... WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1 [fog][WARNING] Unable to load the 'unf' gem. Your AWS strings may not be properly encoded. An error occurred while executing multiple actions in parallel. Any errors that occurred are shown below.
An error occurred while executing the action on the 'default' machine. Please handle this error then try again:
There are errors in the configuration of this machine. Please fix the following errors and try again:
AWS Provider:
- An AMI must be configured via "ami"
@hyperfocus1337 please read my previous comment.
I.e. set the aws.region
too.
Fast reply thanks, already figured it out. Small correction: aws.region = "eu-west-1"
set aws.region but nothing changes? this repository is not updated?