amazon-web-services - Vagrant +AWS : error downloading 'dummy'

标签 amazon-web-services amazon-ec2 vagrant vagrantfile

我确实使用了 https://github.com/mitchellh/vagrant-aws 中给出的入门中的默认值。 。我设置访问/ secret key + key 对以使用环境变量:

Vagrant.configure("2") do |config|
  config.vm.box = "dummy"

  config.vm.provider :aws do |aws, override|
    aws.access_key_id = ENV['AWS_ACCESS_KEY']
    aws.secret_access_key = ENV['AWS_SECRET_KEY']
    #aws.session_token = "SESSION TOKEN"
    aws.keypair_name = ENV['AWS_KEYPAIR']

    aws.ami = "ami-7747d01e"

    override.ssh.username = "ubuntu"
    override.ssh.private_key_path = "~/.ssh/id_rsa"
  end
end

我运行vagrant up --provider=aws:

Bringing machine 'default' up with 'aws' provider...
==> default: Box 'dummy' could not be found. Attempting to find and install...
    default: Box Provider: aws
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'dummy' (v0) for provider: aws
    default: Downloading: dummy
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /Users/username/vagrants/ec2test/dummy

最佳答案

您需要添加dummy盒子,vagrant将无法找到这个盒子并从atlas下载它。

请务必自行添加该框

vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box

这样以后效果会更好

关于amazon-web-services - Vagrant +AWS : error downloading 'dummy' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40050782/

相关文章:

ruby-on-rails - 无法在 ubuntu 上的 rails 上运行 ruby

android - 在哪里放置 amazon.sdktester.json 文件在 Android 中?

php - 任何获得404 Not Found的AWS EB Laravel路由nginx/1.16.1

hadoop - S3中的文件监视并将特定路径发送到程序

kubernetes - 使用Vagrant/Ansible启动多节点kubernetes集群无法检测到kubelet文件

node.js - 类型错误 : Not a buffer node. js 加密,aws-sdk

java - 在 EC2 实例上从 Linux 部署 Java 应用程序

python - 使用 apache-libcloud 获取附加到节点的卷

vagrant - Webpack 开发服务器重新加载在虚拟机上不起作用

javascript - 浏览器中JS字符集错误