6

Я использую Vagrant 1.6.5 и пытаюсь развернуть на Amazon AWS. Я могу успешно развернуть в DigitalOcean, но с AWS я получаю ошибку:

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

Я проверил, что плагин AWS установлен, с

$ 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)

Когда я гуглю эту ошибку, единственный совет, который я получаю, это добавить

vagrant.require_plugin 'vagrant-aws'

к началу Vagrantfile. Однако это не исправляет ошибку, и Вагрант говорит, что она все равно устарела.

Я действительно застрял в этом, и я не знаю, что делать дальше. Ниже приведено полное сообщение об ошибке, если это полезно.

Спасибо Джейсон

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."]

1 ответ1

8

Вот решение, если кто-то ищет это. Я удалил плагин vagrant-aws и переустановил:

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

Это решило проблему.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .