Have the module set up SSH access when a security group is supplied but without necessarily needing an SSH keypair (see here)
Expected Behavior
Module will set up SSH access if ssh_access_security_group_ids is provided without needing ec2_ssh_key_name.
Use Case
Currently an SSH keypair is required before the module will set up SSH access but we prefer to use aws ec2-instance-connect send-ssh-public-key as-and-when we need to access an EC2 instance. We can still send other keys to the instance if we add a random key to the module but that opens the instance up to that keypair permanently rather than temporarily and on-demand.
Describe the Feature
Have the module set up SSH access when a security group is supplied but without necessarily needing an SSH keypair (see here)
Expected Behavior
Module will set up SSH access if
ssh_access_security_group_ids
is provided without needingec2_ssh_key_name
.Use Case
Currently an SSH keypair is required before the module will set up SSH access but we prefer to use
aws ec2-instance-connect send-ssh-public-key
as-and-when we need to access an EC2 instance. We can still send other keys to the instance if we add a random key to the module but that opens the instance up to that keypair permanently rather than temporarily and on-demand.