1
下面是我想在创建Windows Server 2012 R2(64位)后使用PowerShell安装Web Server Windows Feature的AWS Cloudformation模板的一部分。但是,AWS Cloudformation成功创建Windows Server 2012 EC2实例,但不安装Web Server角色。AWS:Cloudformation模板:安装Windows功能问题
"commands" : {
"1-install-roles" : {
"command" : { "Fn::Join" : [ "", [
"if not \"None\" EQU \"",
{ "Ref" : "Roles" },
"\" (powershell -Command \"Install-WindowsFeature -Name Web-Server -IncludeAllSubFeature ",
{ "Ref" : "Roles" },
" -Restart\")"]]
}
},
感谢您的指导。