对 EC2 实例进行分类

发布于 2024-07-10 18:35:37 字数 284 浏览 12 评论 0原文

有没有办法区分 EC2 实例集?

我的用例是我有一堆网络层机器和一堆搜索层机器; 目前,跟踪每个实例正在执行的操作的唯一方法是在您自己的资产目录中,例如 LDAP 或数据库。

理想情况下,我希望能够根据 AWS API 提供的元数据确定机器的角色。

目前,我想出的唯一方法是在不同的安全组中拥有不同的计算机角色(即使不是严格要求)。 有没有更好的办法?

Is there a way to distinguish between sets of EC2 instances?

My use case is that I have a bunch of web tier machines and a bunch of search tier machines; currently the only way to track what each instance is doing is in a roll-your-own asset directory, like LDAP or a database.

Ideally, I'd like to be able to determine the role of a machine from the metadata available from the AWS APIs.

Currently, the only approach I've come up with is to have different machine roles in different security groups (even if it's not strictly required). Is there a better way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

执着的年纪 2024-07-17 18:35:37

更新:EC2 现在支持用于对实例进行分类的“标签”。

http://docs.amazonwebservices.com/AWSEC2/latest/ UserGuide/index.html?Using_Tags.html


我一直使用安全组进行分类。 我不认为使用它们有什么问题!

组不仅允许分类,还允许不同的防火墙规则。 每个实例还可以有多个组,例如“生产”、“数据库”

参考:http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/index.html?ApiReference-SOAP-RunInstances.html

Update: EC2 now supports "tags" for categorising instances.

http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/index.html?Using_Tags.html


I've always used security groups for categorising. I don't see anything wrong with using them!

Groups not only allow categorising, they also allow different firewall rules. You can also have more than one group per instance, e.g. "production", "database"

Reference: http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/index.html?ApiReference-SOAP-RunInstances.html

真心难拥有 2024-07-17 18:35:37

您可能想查看一些第三方工具,例如 rightscale,它添加了一些使用附加元数据(例如卷和实例上有意义的标签)管理云资源的功能。 我现在只使用免费版本,它有一定的限制,但它仍然比亚马逊提供的管理工具增加了很多功能。

亚马逊刚刚发布了自己的控制台 (https://console.aws.amazon.com/),这最初让我对 RightScale 免费版本的前景感到兴奋。 然而,看起来它只是一个功能上与 ElasticFox 等效的 Web UI。 那好吧。

我仍在本地保留一个电子表格来跟踪这一混乱情况。 另外,这是技术含量极低的,但我在每台计算机的桌面上(在管理员帐户下)放置一个文本文件,并在文件名中注明计算机的用途,这样我就可以区分它们(生成的计算机名称绝对不是无需备忘单即可提供帮助。)

You might want to check out some third party tools like rightscale which adds some capability for managing cloud resources with additional metadata like meaningful labels on volumes and instances. I am only using the free version right now which is somewhat limited, but it still adds quite a bit over the Amazon provided management tools.

Amazon just announced their own console (https://console.aws.amazon.com/), which initially got me excited about the prospect of a free version of RightScale. However, it looks like it is just a Web UI that is functionally equivalent to ElasticFox. Oh well.

I am still keeping a spreadsheet locally to keep track of this mess. Also, this is extremely low tech, but I am dropping a text file on the desktop of each machine (under the admin account) with the purpose of the machine in the filename so I can tell them apart (the generated machine names are absolutely no help without a cheat sheet.)

英雄似剑 2024-07-17 18:35:37

如果您只想在线监控 EC2 实例,我会赞同 John 的投票,使用免费的 RightScale 帐户。 付费版本为您提供更多功能,但价格可能会相当昂贵。

新的 AWS 管理控制台是一个很好的 UI,比 ElasticFox 更容易执行常见操作,例如启动实例、创建和附加 EBS 卷等,但我真的很惊讶他们没有添加标记实例的功能和卷。 这些 Amazon ID 字符串不太容易记住,是吗 ;-)

AWS 控制台确实显示了每个实例的安全组,因此 Gerald 使用安全组来标识不同实例组的建议在那里可行,但仍然不行就像为每个设备都有一个可编辑的标签一样。

I'd second John's vote to use a free RightScale account if you just want to keep tabs on your EC2 instances online. The paid version gives you a lot more functionality, but it can get quite expensive.

The new AWS Management Console is a nice UI and makes it easier than in ElasticFox to do common operations like launching instances, creating and attaching EBS volumes and so on, but I'm really surprised they didn't add the capability to label your instances and volumes. Those Amazon ID strings are not exactly easy to remember, are they ;-)

The AWS console does show the security group for each instance, so Gerald's suggestion of using the security group to identify different groups of instances would work there, but it's still not as good as having an editable label for each device.

朦胧时间 2024-07-17 18:35:37

虽然它不在 AWS 元数据中,但您始终可以使用 iClassify 等内容。 它被设计为服务器(无论是否为 EC2)的元数据存储库。

While it's not in the AWS meta data, you could always use something like iClassify. It's designed to be the meta data repository for servers, EC2 or not.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文