【发布时间】:2019-10-28 11:39:55
【问题描述】:
我在 Stackoverflow 上看到了很多问题,询问是否有办法自动增加实例名称。例如:
foo1
foo2
fooN
我想看看是否有办法在 Powershell 中执行此操作。我正在使用 AutoLaunchConfiguration/ASG 来启动实例。是否有自动递增实例方式的编程方式?到目前为止,我看到的每个资源都说这是可能的,但没有提供这样做的方法。以下是我正在查看的一些资源:
- Method to provide incremental name to ec2 instances created using auto scaling group in aws
- How to create variable number of EC2 instance resources in Cloudformation template?
有没有人有一个使用 AutoLaunchConfiguration 和 ASG 的工作示例?如果是这样,您能否提供一个可以为我提供此信息的链接/文章?
【问题讨论】:
标签: powershell amazon-ec2 autoscaling