amazon-ec2 - Troposhere 循环创建 EC2 实例
问题描述
我想在我的 cloudformation 模板 (YAML) 中创建可变数量的 EC2 实例。我计划为 EC2 实例创建和循环创建一个堆栈。我读到这是可以使用对流层实现的。有人可以帮我提供模板或示例吗?
解决方案
将以下内容写入一个可以为每个实例重用的类。
https://github.com/cloudtools/troposphere/blob/master/examples/EC2InstanceSample.py
推荐阅读
- android - Tizen 设备管理器看不到我的三星 s9+
- c# - 未找到局部视图
- php - 正则表达式匹配最少括号内的任何内容
- excel - 在列表中查找重复项(不比较 2 个列表),并根据先前的外观将它们显示在第二列
- xhtml - 混合内容的 DTD 验证错误元素
- javascript - 反应中的登录身份验证和laravel不记录
- highcharts - Highmaps 工具提示入门
- javascript - JavaScript - 来自匹配 ID 的新对象数组
- c# - 如何在 .NET Core 2.2 应用程序中创建 CloudTableClient?
- android - IntelliJ 中的任务“:app:compileDebugJavaWithJavac”执行失败