1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect1 id="zend.service.amazon.ec2.keypairs">
4 <title>Zend_Service_Amazon_Ec2: Keypairs</title>
7 Keypairs are used to access instances.
10 <example id="zend.service.amazon.ec2.keypairs.create">
11 <title>Creating a new Amazon Keypair</title>
14 <code>create</code>, creates a new 2048 bit RSA key pair and
15 returns a unique ID that can be used to reference this key
16 pair when launching new instances.
20 <code>create</code> returns an array which contains the keyName,
21 keyFingerprint and keyMaterial.
24 <programlisting language="php"><![CDATA[
25 $ec2_kp = new Zend_Service_Amazon_Ec2_Keypair('aws_key','aws_secret_key');
26 $return = $ec2_kp->create('my-new-key');
30 <example id="zend.service.amazon.ec2.keypairs.delete">
31 <title>Deleting an Amazon Keypair</title>
34 <code>delete</code>, will delete the key pair. This will only
35 prevent it from being used with new instances. Instances currently
36 running with the keypair will still allow you to access them.
40 <code>delete</code> returns boolean <constant>TRUE</constant> or
41 <constant>FALSE</constant>
44 <programlisting language="php"><![CDATA[
45 $ec2_kp = new Zend_Service_Amazon_Ec2_Keypair('aws_key','aws_secret_key');
46 $return = $ec2_kp->delete('my-new-key');
50 <example id="zend.service.amazon.ec2.describe">
51 <title>Describe an Amazon Keypair</title>
54 <code>describe</code> returns information about key pairs available to you.
55 If you specify key pairs, information about those key pairs is returned. Otherwise,
56 information for all registered key pairs is returned.
60 <code>describe</code> returns an array which contains keyName and keyFingerprint
63 <programlisting language="php"><![CDATA[
64 $ec2_kp = new Zend_Service_Amazon_Ec2_Keypair('aws_key','aws_secret_key');
65 $return = $ec2_kp->describe('my-new-key');