Amazon EC2的替代工具? [英] Alternative tools for Amazon EC2?

查看:235
本文介绍了Amazon EC2的替代工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Amazon的官方工具与EC2交互是有点笨拙,痛苦的处理。我必须设置一堆环境变量,存储单独的私钥只是为EC2,添加额外的项目到我的PATH,等等。它们都输出数百个字符长,没有标题的制表符分隔行,因此解释它们有点痛苦。他们的设置SSH密钥对的说明给你一个不受密码保护的,而不是让你使用已经存在的密钥对。这些程序都只是有点笨重,并不是很好的Unix程序。



那么,有没有更容易使用命令行工具访问EC2?我知道有ElasticFox,还有他们的基于web的控制台,这使得过程更容易,但我想知道是否有任何人写了更好的命令行工具与EC2交互。



我发现了与Amazon相同的问题AMI工具。他们是一个不错的参考实现,但很难使用,特别是当你有多个几个实例。我写了一个替换命令行工具作为另一个项目的一部分,称为Rudy,可以回答大多数问题。



这些命令比Amazon的AMI工具更直观:




  • rudy-ec2 instances -C

  • code> rudy-ec2 groups -A -p 8080 -a 11.22.33.44 group-name

  • rudy-ec2 volumes -C -s ​​100

  • rudy-ec2图片

  • ...



所有配置都在一个文件中(〜/ .rudy / config )。



它可以以多种格式输出(yaml,json,csv,tsv和当然的正常文本):

  rudy-ec2 -f yaml快照
---
:awsid:snap-2457b24d
:progress:100%
:created :2009-05-08T15:24:17.000Z
:volid:vol-4ee10427
:status:completed

对于私钥,没有EC2工具允许创建带有密码的私钥来启动公共实例,因为API不支持。但是,如果您创建自己的图像,您可以使用您的私钥。



以下是更多信息:




Amazon's official tools for interacting with EC2 are kind of clunky and a pain to deal with. I have to set up a bunch of environment variables, store separate private keys just for EC2, add extra items to my PATH, and so on. They all output tab delimited lines that are hundreds of characters long with no headings, so it's a bit of a pain to interpret them. Their instructions for setting up an SSH keypair give you one that isn't protected by a passphrase, rather than letting you use an existing keypair that you already have. The programs are all just a bit clunky and aren't very good Unix programs.

So, are there any easier to use command line tools for accessing EC2? I know there is ElasticFox, and there is their web based console, which do make the process easier, but I'm wondering if anyone else has written better command line tools for interacting with EC2.

解决方案

I'm a bit late but I have a solution!

I found the same problems with the Amazon AMI tools. They're a decent reference implementation but very difficult to use particularly when you have more than a couple instances. I wrote a replacement command-line tool as part of another project, called Rudy that answers most of your concerns

The commands are more intuitive than Amazon's AMI tools:

  • rudy-ec2 instances -C
  • rudy-ec2 groups -A -p 8080 -a 11.22.33.44 group-name
  • rudy-ec2 volumes -C -s 100
  • rudy-ec2 images
  • ...

All configuration is in a single file (~/.rudy/config).

It can output in several formats (yaml, json, csv, tsv, and of course regular text):

rudy-ec2 -f yaml snapshots
--- 
:awsid: snap-2457b24d
:progress: 100%
:created: "2009-05-08T15:24:17.000Z"
:volid: vol-4ee10427
:status: completed

Regarding the private keys, There are no EC2 tools that allow to create private keys for with a password for booting a public instance because the API doesn't support it. However, if you create your own image, you can use your private keys.

Here's more info:

这篇关于Amazon EC2的替代工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆