Skip to content

Add the ability to provide the SSH private key and dictate which EC2 key name to use without generating ephemeral SSH keys #54

Open
@isuftin

Description

With the way the current code works, I don't see a way to provide a private key to pass into Molecule for the EC2 instance while at the same time have the EC2 instance use an EC2 SSH key name and NOT generate an ephemeral key and NOT override or append cloud-init config.

The use case is that during testing time, we have an SSH key on local disk that we want to reuse. AWS has this key aliased as an EC2 key. We want to fire up the EC2 instance and provide the key name. We want to NOT generate ephemeral EC2 keys by the driver.

The other caveat being that we don't want to override or append cloud-init because the AMIs we're testing already have cloud-init set up and have scripting that will pick up the public SSH key as provided by AWS and set it for the user we're trying to log in with.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ec2Amazon EC2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions