Reputation: 31
I'm new to both Vagrant and AWS but trying to get the two to play together.
I'm following the instructions here, but something doesn't seem correct.
So far my steps are :
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
Now whenever I run Vagrant as vagrant up —-provider=aws
, I always get the following message:
The machine with the name '
—-provider=aws
' was not found configured for this Vagrant environment.
Now I'm not sure what's causing that message.
Would anyone know what's going on here?
Upvotes: 3
Views: 1967
Reputation: 1
I was having the same problem with vagrant up —-provider=aws
I ended up doing this:
export VAGRANT_DEFAULT_PROVIDER=aws
vagrant up
Upvotes: 0
Reputation: 53793
you would need to add the vagrant-aws plugin
vagrant plugin install vagrant-aws
then you can run
vagrant up --provider=aws
If you already had installed the plugin, try to uninstall first and reinstall
vagrant plugin uninstall vagrant-aws
vagrant plugin install vagrant-aws
Upvotes: 1