By default, Vagrant will go through all config.vm.provider and select the first service provider, so you must add virtualbox before aws :
config.vm.provider "virtualbox" do |v| v.customize ['modifyvm', :id, '--natdnshostresolver1', 'on'] v.memory = 4096 v.cpus = 2 end
or select another provider manually, either using --provider , as already mentioned, or the VAGRANT_DEFAULT_PROVIDER variable:
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
or use config.vm.provider without configuration to set the order in your Vagrantfile, for example:
Vagrant.configure("2") do |config| # ... other config up here # Prefer VirtualBox Fusion before VirtualBox config.vm.provider "virtualbox" config.vm.provider "aws" end
See: Providerβs primary use on vagrantup.com
If you need to use the AWS provider, these errors mean that you need to configure the correct credentials using the aws configure command, so ~/.aws/credentials can be created with your aws_access_key_id and aws_secret_access_key . To configure AMI, check the README plugin file (basically you need to add aws.ami to your stray file).
source share