<s> import os <EOL> from libcloud . compute . types import Provider <EOL> from libcloud . compute . providers import get_driver <EOL> EC2_ACCESS_ID = '<STR_LIT>' <EOL> EC2_SECRET_KEY = '<STR_LIT>' <EOL> Driver = get_driver ( Provider . EC2 ) <EOL> conn = Driver ( EC2_ACCESS_ID , EC2_SECRET_KEY ) <EOL> key_file_path = os . path . expanduser ( '<STR_LIT>' ) <EOL> key_pair = conn . import_key_pair_from_file ( name = '<STR_LIT>' , <EOL> key_file_path = key_file_path ) </s>
