Vagrantfile,AWS Access Key

时间:2014-01-09 00:05:59

标签: amazon-web-services virtual-machine virtualbox vagrant headless-browser

什么是aws.access_key_id,aws.secret_access_key,aws.keypair_name。它们的价值应该是什么?

来自:http://www.chrisle.me/2013/08/running-headless-selenium-with-chrome/的片段

它与此处的说明不完全匹配:https://github.com/mitchellh/vagrant-aws

# encoding: utf-8
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "precise64"
  config.vm.box_url = "http://files.vagrantup.com/precise64.box"
  config.ssh.forward_agent = true

  config.vm.provider :aws do |aws, override|
    aws.access_key_id = 'XXXX'      # Replace this
    aws.secret_access_key = 'XXXX'  # Replace this
    aws.keypair_name = 'XXXX'       # Replace this
    aws.ami = 'ami-7747d01e'        # ubuntu 12.04
    override.ssh.username = 'ubuntu'
    override.ssh.private_key_path = '~/.ssh/amazon-ubuntu.pem'
  end

  config.vm.provision :shell, :path => "setup.sh"
  config.vm.network :forwarded_port, guest:4444, host:4444

end

1 个答案:

答案 0 :(得分:1)

它是亚马逊网络服务中用户的密钥ID和密钥访问密钥。

请参阅手册以获取:http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html