【发布时间】:2015-10-08 14:12:58
【问题描述】:
我正在尝试学习 Cloudformation。
有人可以向我解释为什么1-install-roles 编号为“1”吗?
这条线是做什么的"if not \"None\" EQU \"",
Resource("WindowsServer") do
Type("AWS::EC2::Instance")
Metadata("AWS::CloudFormation::Init", {
"config" => {
"commands" => {
"1-install-roles" => {
"command" => FnJoin("", [
"if not \"None\" EQU \"",
Ref("Roles"),
"\" (powershell.exe add-windowsfeature ",
Ref("Roles"),
" -restart)"
])
【问题讨论】:
标签: amazon-web-services amazon-cloudformation