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 :
- 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
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?