Commit fe55da0 1 parent 4feff98 commit fe55da0 Copy full SHA for fe55da0
File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ class Ec2 < Kitchen::Driver::Base
78
78
default_config :aws_secret_access_key , nil
79
79
default_config :aws_session_token , nil
80
80
default_config :aws_ssh_key_id , ENV [ "AWS_SSH_KEY_ID" ]
81
+ default_config :aws_ssh_key_type , "rsa"
81
82
default_config :image_id , &:default_ami
82
83
default_config :image_search , nil
83
84
default_config :username , nil
@@ -831,7 +832,7 @@ def create_key(state)
831
832
# to rapidly exhaust local entropy by creating a lot of keys. So this is
832
833
# probably fine. If you want very high security, probably don't use this
833
834
# feature anyway.
834
- resp = ec2 . client . create_key_pair ( key_name : "kitchen-#{ name_parts . join ( "-" ) } " )
835
+ resp = ec2 . client . create_key_pair ( key_name : "kitchen-#{ name_parts . join ( "-" ) } " , key_type : config [ :aws_ssh_key_type ] )
835
836
state [ :auto_key_id ] = resp . key_name
836
837
info ( "Created automatic key pair #{ state [ :auto_key_id ] } " )
837
838
# Write the key out with safe permissions
You can’t perform that action at this time.
0 commit comments