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\")"]]
}
},
感謝您的指導。