다음은 Windows Server 2012 R2 (64 비트)를 만든 후 PowerShell Web Server Windows 기능 설치를 사용하려는 AWS Cloudformation 템플릿의 일부입니다. 그러나 AWS Cloudformation은 Windows Server 2012 EC2 인스턴스를 성공적으로 만들지 만 웹 서버 역할을 설치하지는 않습니다.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\")"]]
}
},
감사합니다.