由网友(月色如浅梦〆)分享简介:亚马逊的 Windows角色和功能模板演示了如何在服务器上安装的功能。但谁能告诉我我将如何安装应用程序/功能,是不可以 present在这份名单中,如的 WebDeploy ?我AP preciate我可以创建一个自定义的AMI,但我期待在模板级别完全做到这一点。Amazon's Windows Roles and...
亚马逊的 Windows角色和功能模板演示了如何在服务器上安装的功能。但谁能告诉我我将如何安装应用程序/功能,是不可以 present在这份名单中,如的 WebDeploy ?我AP preciate我可以创建一个自定义的AMI,但我期待在模板级别完全做到这一点。
Amazon's Windows Roles and Features template demonstrates how to install features on a server. But can anyone tell me how would I install an application/feature that is not present in this list, such as WebDeploy? I appreciate I could create a custom AMI, but I'm looking to do this entirely at template-level.
在此先感谢。
推荐答案
有关您WebDeploy的例子,你可以补充一点:
For your example of WebDeploy, you could add this:
"C:WebdeployWebDeploy_amd64_en-US.msi" : {
"source" : "http://download.microsoft.com/download/1/B/3/1B3F8377-CFE1-4B40-8402-AE1FC6A0A8C3/WebDeploy_amd64_en-US.msi"
}
因为这部分的模板的元素
as a element of this section of the template
"WindowsServer": {
"Type" : "AWS::EC2::Instance",
"Metadata" : {
"AWS::CloudFormation::Init" : {
"config" : {
"files" : {
您可以再加入这个命令:
You could then add this command:
"1-installwebdeploy" : {
"command" : "msiexec.exe /i C:WebdeployWebDeploy_amd64_en-US.msi ADDLOCAL=ALL /qn /norestart"
}
要的命令的列表。
相关推荐
最新文章