Skip to content

Commit

Permalink
Require vagrant 1.2 to 2.2.15
Browse files Browse the repository at this point in the history
This is provided because 2.2.16 has a bug where it cannot be used with RSA
SHA1 ssh keys which makes it impossible to use with vagrant-aws as well as
any other platform that only supports RSA SHA1 keys. There's been no
activity from the vagrant maintainers to fix this for some time.

hashicorp/vagrant#12344
  • Loading branch information
Tim Visher committed Jun 4, 2021
1 parent 43e7ec2 commit 857ac4f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lib/vagrant-aws/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@
raise "The Vagrant AWS plugin must be run within Vagrant."
end

# This is a sanity check to make sure no one is attempting to install
# this into an early Vagrant version.
if Vagrant::VERSION < "1.2.0"
raise "The Vagrant AWS plugin is only compatible with Vagrant 1.2+"
# This is a sanity check to make sure no one is attempting to install this
# into an early Vagrant version or a Vagrant version that requires SSH
# keys that AWS does not support.
#
# Upstream issue documenting platforms that don't support SHA2 SSH keys:
# https://github.com/hashicorp/vagrant/issues/12344
#
# AWS documentation about what kinds of SSH keys are required:
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
if Vagrant::VERSION < "1.2.0" or "2.2.15" < Vagrant::Version
raise "The Vagrant AWS plugin is only compatible with Vagrant 1.2 to 2.2.15"
end

module VagrantPlugins
Expand Down

0 comments on commit 857ac4f

Please sign in to comment.