我对Vagrant和AWS都不熟悉,但是我想让它们一起运行。
我正在按照这里的说明进行操作,但似乎有些不正确。
到目前为止,我的步骤如下:
- List item
- Log into AWS Console
- Go into IAM
- Create user vagrant_test
- Downloaded credentials.csv
- Edit user vagrant_test Attach policies :
- AmazonRDSFullAccess
- AmazonEC2FullAccess
- AmazonS3FullAccess
- AmazonRoute53FullAccess
- Go to Services -> EC2
- Create Key Pair called vagrant_kp
- Download vagrant_kp.pem
- Install Vagrant on local machine vagrant plugin install vagrant-aws
- Add the dummy box vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
- Check to see if box is installed $ vagrant box list dummy (aws, 0)
Create Vagrantfile with contents
Vagrant.configure(2) do |config| config.vm.box = "dummy" config.vm.provider :aws do |aws, override| aws.access_key_id = "<hidden>" aws.secret_access_key = "<hidden>" aws.keypair_name = "vagrant_kp" aws.ami = "ami-52978200" #Amazon Linux AMI 2015.09 (HVM), SSD Volume Type - ami-52978200 override.ssh.username = "ec2-user" override.ssh.private_key_path = "/Users/delOne/Test/re/aws/vagrant_kp.pem" end end
vagrant up —-provider=aws
,总是收到以下信息:
现在我不确定是什么原因导致了这个信息。名称为'
--provider=aws
'的虚拟机未被配置到这个Vagrant环境中。
请问有人知道这里发生了什么吗?