简体   繁体   English

AWS AutoScaling增量标记实例

[英]AWS AutoScaling Incremental tagging instances

I'm setting up an auto-scaling group and to dynamically tag instances, is it possible to auto-increment name tag? 我正在设置一个自动扩展组并动态标记实例,是否可以自动增加名称标记?

for eg:- 例如:

Key : Name Value : Instance-1 密钥 :名称 :Instance-1
Key : Name Value : Instance-2 密钥 :名称 :Instance-2
.
.
.
Key : Name Value : Instance-N 密钥 :名称 :Instance-N

Yes, it possible. 是的,有可能。 But not directly using any AWS functionality. 但不能直接使用任何AWS功能。

You have to embed a function where in as the instance is launched by AutoScaling Group a notification (AWS SNS) is triggered and is stored in SQS. 您必须嵌入一个函数,其中当实例由AutoScaling Group启动时,将触发通知(AWS SNS)并将其存储在SQS中。

You will have to use a Program/Script which runs on a server and keeps a constant watch on the SQS, get the latest notification and Information regarding the Instance. 您将必须使用在服务器上运行的程序/脚本,并不断监视SQS,获取有关实例的最新通知和信息。 Then change the Tag Name of the instance using a incremental functionality. 然后使用增量功能更改实例的标记名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM