[17:12] <trifon> Happy New Year everyon!
[17:21] <trifon> i have issue with key-pair and starting instances.
[17:21] <trifon> i'm adding new ey pair with: ec2-add-keypair ec2-keypair > ec2-keypair.pem
[17:22] <trifon> and changing permission on the new file: chmod 600 ec2-keypair.pem
[17:22] <trifon> but after that when i try to start instance with : ec2-run-instances ami-xxxxx -k ec2-keypair
[17:23] <trifon> i got error: Client.InvalidKeyPair.NotFound: The key pair '/data/trifon/Desktop/amazonws.com/ec2-keypair' does not exist
[20:35] <erichammond> trifon: It sounds like you were specifying -k /data/trifon/Desktop/amazonws.com/ec2-keypair
[20:36] <erichammond> You only need to specify the name of the keypair as it was passed to ec2-add-keypair, i.e., -k ec2-keypair
[22:01] <trifon> erichammond: hi Eric. Thank you very much fro you response!
[22:01] <trifon> i found th reason.
[22:02] <trifon> 1) i must specify only name of the key pair.
[22:02] <trifon> 2) i must specify region.
[22:02] <trifon> i'm in Europe and if i omit region then key is created in Us.
[22:04] <trifon> which leads to error when i try to start instance because key is not found.
[23:25] <erichammond> trifon: Glad you solved it.  There should be an envariable you can set to default the EC2 commands to use your preferred region.  Setting EC2_URL might do it.
[23:30] <trifon> erichammond: well it took me 1 day to look around.
[23:30] <trifon> thank's for the hint.
[23:31] <trifon> erichammond: i want to ask you if you have 5 minutes?
[23:31] <trifon> i have questions. they are not technical.