Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-57

Support for EC2 create keypair functionality

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • Core
    • None

    Description

      EC2 nodes launched via libcloud are useful only if they have an EC2 keypair associated with them, otherwise there is no way to actually ssh into the newly created node (unless you perform bootstrap actions via user data). The attached patch adds an ex_create_keypair method to the EC2NodeDriver class. This method takes a keypair name as its argument, and creates a new keypair, then returns the private key material (to be saved into a file by the caller of the method) and the keypair fingerprint.

      If this is deemed useful, I will add another method for importing an existing keypair into EC2 (this API was recently added to the AWS EC2 API).

      Grig

      Attachments

        1. ec2_create_keypair.patch
          1 kB
          Grig Gheorghiu

        Activity

          People

            Unassigned Unassigned
            griggheo Grig Gheorghiu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: