替代工具亚马逊EC2?亚马逊、工具

2023-09-11 08:34:22 作者:我一直很尊重金钱

亚马逊的与EC2交互官方工具是那种笨重和疼痛来处理。我设置了一堆的环境变量,分别存储私钥只为EC2,增加额外的项目我的道路,等等。他们都输出制表符分隔行是数百个字符长,没有标题,所以这是一个有点痛国米$ P $点的方式。他们对建立一个SSH密钥对给你一个不被密码保护的,而不是让你使用现有的密钥对你已经有了说明。这些方案都只是有点笨重,不是很好的Unix程序。

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.

那么,还有什么更易于使用命令行工具来访问EC2?我知道有ElasticFox,并有自己的基于Web的控制台,它这样做使这一过程变得更容易,但我不知道是否有人写更好的命令行工具与EC2交互。

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!

我发现了同样的问题与亚马逊的AMI工具。他们是一个不错的参考实现,但很难用特别是当你有超过一对夫妇的实例。我写了一个替代的命令行工具作为另一个项目的组成部分,被称为鲁迪,回答你的大部分顾虑

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

该命令是比亚马逊的AMI工具更直观的:

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

鲁迪 - EC2实例-C 鲁迪 - EC2团体-A -p 8080 -a 11.22.33.44组名称 鲁迪 - EC2卷-C -s ​​100 鲁迪 - EC2镜像 ... 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 ...

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

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

它能够在多种格式输出(YAML,JSON,CSV,TSV,当然普通的文字):

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

关于私有密钥,没有EC2的工具,允许对与引导公共实例的,因为API不支持密码的创建私有密钥。但是,如果你创建你自己的图像,你可以用你的私钥。

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.

下面是详细信息:

GitHub的项目 介绍鲁迪 - EC2 GitHub Project An introduction to rudy-ec2
 
精彩推荐
图片推荐