it-swarm-ja.com

Vagrantエラー:プロバイダー「aws」が見つかりませんでした

Vagrant 1.6.5を使用していて、AmazonAWSにデプロイしようとしています。 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の先頭まで。ただし、これでエラーが修正されるわけではなく、vagrantはとにかく非推奨であると述べています。

私は本当にこれに固執していて、次に何をすべきかわかりません。以下は、役立つ場合の完全なエラーメッセージです。

ありがとう、ジェイソン

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

誰かがこれを検索した場合の解決策は次のとおりです。 vagrant-awsプラグインをアンインストールし、再インストールしました。

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

これで問題が修正されました。

8
wx13