简体   繁体   English

在AWS CloudFormation中一一生成实例

[英]Spawn instances one by one in AWS CloudFormation

How to spawn instances one by one using AWS CloudFormation Templates ? 如何使用AWS CloudFormation模板一一生成实例? Right now all the instances are spawned at the same time. 现在,所有实例都在同一时间生成。 Following are the values that i have used (min|default|max): 以下是我使用的值(最小|默认|最大):

  • MinInstances : 1 | MinInstances:1 | 1 | 1 | 25 25
  • MaxInstances : 2 | MaxInstances:2 | 4 | 4 | 26 26
  • DesiredInstances: 1 | 所需实例:1 | 3 | 3 | 25 25

With the above configuration all the 3 nodes are spawned at the same time. 通过以上配置,可以同时生成所有3个节点。 I want them to be spawned sequentially ie one after the other. 我希望它们依次生成,一个接一个。

You can see if DependsOn Attribute of CF can solve your issue. 您可以查看CF的DependsOn属性是否可以解决您的问题。 I have not used this attribute before. 我以前没有使用过此属性。

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

相关问题 如何在不使用 AutoScaling 的情况下使用 aws cloudformation 启动多个 EC2 实例? - How can I launch more than one EC2 instances using aws cloudformation without using AutoScaling? 在一个 go aws cloudformation 中创建多个卷 - Create Multiple volumes in one go aws cloudformation 两个AWS Cloudformation堆栈可以共享一个AWS :: Serverless :: Function吗? - Can two aws cloudformation stacks share one AWS::Serverless::Function? 如何在 AWS::CloudFormation::Init 中添加 yum 存储库 - How can one add a yum repository in AWS::CloudFormation::Init 如何在AWS CloudFormation YAML模板中转义策略变量 - How does one escape policy variables in AWS CloudFormation YAML templates 将基础架构从一个区域克隆到另一区域:AWS CloudFormation - Cloning infrastructure from one region to another: AWS CloudFormation AWS cloudformation:一个大模板文件还是许多小模板文件? - AWS cloudformation: One big template file or many small ones? 为多个实例使用一个 AWS 弹性 IP - Use one AWS Elastic IP for several instances AWS - 使用 CloudFormation 将数据从一个 S3 存储桶移动到另一个存储桶 - AWS - Moving data from one S3 bucket to another with CloudFormation VPC和自动调用的Windows实例的AWS Cloudformation问题 - AWS Cloudformation trouble with VPC and Autoscalled Windows instances
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM