Closed morazow closed 3 years ago
I can re-create this error and also can confirm that adding the workaround you pointed to resolves the issue:
diff --git a/aws/Vagrantfile b/aws/Vagrantfile
index d7d508b..cff873b 100644
--- a/aws/Vagrantfile
+++ b/aws/Vagrantfile
@@ -29,6 +29,16 @@ load File.expand_path('../Vagrantfile.aws-ami', __FILE__)
# Load common settings
load File.expand_path('../../shared/Vagrantfile.common', __FILE__)
+class Hash
+ def slice(*keep_keys)
+ h = {}
+ keep_keys.each { |key| h[key] = fetch(key) if has_key?(key) }
+ h
+ end unless Hash.method_defined?(:slice)
+ def except(*less_keys)
+ slice(*keys - less_keys)
+ end unless Hash.method_defined?(:except)
+end
# Customize configuration specific settings
Vagrant.configure("2") do |config|
Once I got all cleaned up, I will create a new PR for the AWS fixes.
Running the vagrant up throws the following exception:
It is related to this issue: https://github.com/mitchellh/vagrant-aws/issues/566
I solved the issue using the workaround suggested on this comment: https://github.com/mitchellh/vagrant-aws/issues/566#issuecomment-580812210
I think
vagrant-aws
seems to be not very actively maintained, general solution would be to use differnt aws vagrant plugin.