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

Support for EC2 create keypair functionality

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: Core
    • Labels:
      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

        Activity

        Hide
        griggheo Grig Gheorghiu added a comment -

        Patch to add ex_create_keypair method to EC2NodeDriver class.

        Show
        griggheo Grig Gheorghiu added a comment - Patch to add ex_create_keypair method to EC2NodeDriver class.
        Hide
        pquerna Paul Querna added a comment -
        Show
        pquerna Paul Querna added a comment - Applied in r1004499; https://svn.apache.org/viewvc?view=revision&revision=1004499 Thanks!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development