Erro do Vagrant: O provedor 'aws' não foi encontrado

5

Estou usando o Vagrant 1.6.5 e tentando implantar no Amazon AWS. Eu posso implantar com sucesso no DigitalOcean, mas com o AWS eu recebo o erro:

The provider 'aws' could not be found, but was requested to
back the machine 'default'. Please use a provider that  
exists.

Eu verifiquei que o plugin aws está instalado, com

$ vagrant plugin list
vagrant-aws (0.5.0)
vagrant-digitalocean (0.7.0)
vagrant-login (1.0.1, system)
vagrant-share (1.1.1, system)

Quando busco no Google por esse erro, o único conselho que recebo é adicionar

vagrant.require_plugin 'vagrant-aws'

para o início do Vagrantfile. No entanto, isso não corrige o erro, e vagrant diz que ele está obsoleto de qualquer maneira.

Estou realmente preso a isso e não sei o que fazer a seguir. Abaixo está a mensagem de erro completa, caso seja útil.

Obrigado Jason

ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::Errors::ProviderNotFound: The provider 'aws' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.>
ERROR vagrant: The provider 'aws' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.
ERROR vagrant: /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/vagrantfile.rb:119:in 'machine_config'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/vagrantfile.rb:45:in 'machine'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:537:in 'machine'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/v2/command.rb:168:in 'block in with_target_vms'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/v2/command.rb:192:in 'call'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/v2/command.rb:192:in 'block in with_target_vms'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/v2/command.rb:174:in 'each'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/v2/command.rb:174:in 'with_target_vms'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/up/command.rb:67:in 'block in execute'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:268:in 'block (2 levels) in batch'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:266:in 'tap'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:266:in 'block in batch'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:265:in 'synchronize'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:265:in 'batch'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/up/command.rb:58:in 'execute'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/cli.rb:42:in 'execute'
/opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:292:in 'cli'
/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant:174:in '<main>'
 INFO interface: error: The provider 'aws' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.
The provider 'aws' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.
 INFO interface: Machine: error-exit ["Vagrant::Errors::ProviderNotFound", "The provider 'aws' could not be found, but was requested to\nback the machine 'default'. Please use a provider that exists."]
    
por wx13 29.09.2014 / 02:22

1 resposta

7

Aqui está a solução, caso alguém pesquise por isso. Eu desinstalei o plugin vagrant-aws e reinstalei:

vagrant plugin uninstall vagrant-aws
vagrant plugin install vagrant-aws

Isso resolveu o problema.

    
por 29.09.2014 / 07:32