我正在使用 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.
Run Code Online (Sandbox Code Playgroud)
我已经验证了 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)
Run Code Online (Sandbox Code Playgroud)
当我用谷歌搜索这个错误时,我得到的唯一建议是添加
vagrant.require_plugin 'vagrant-aws'
Run Code Online (Sandbox Code Playgroud)
到 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'. …
Run Code Online (Sandbox Code Playgroud)