给定一个拥有多个团队使用EC2的公司,当创build实例或者ami时,为了设置一些TAG准则,可以更容易地search和过滤资源,有哪些常见或者实用的策略?
最初,我们试图让每个创build虚拟机的人都使用以下格式的标签。
name [name of the person creating the vm] project [project for the vm created for] team [team the VM belongs to] purpose [what is the VM used for] application [what application will be served on the vm]
这工作得很好。 我们通过创build一个简单的PHP表单来创build一个称为EC2 API的类。 PHP表单已经过validation,所有条目都是有效的,一致的和强制性的。 团队和项目有列表框。
使用简单的fog.io EC2 api,我们会根据标签生成报告