安装Windows应用程序/使用Amazon CloudFormation扩展 [英] Installing Windows applications/extensions with Amazon CloudFormation

查看:272
本文介绍了安装Windows应用程序/使用Amazon CloudFormation扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亚马逊的<一href="https://s3.amazonaws.com/cloudformation-templates-us-east-1/Windows_Roles_And_Features.template"相对=nofollow> 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:\\Webdeploy\\WebDeploy_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:\\Webdeploy\\WebDeploy_amd64_en-US.msi ADDLOCAL=ALL /qn /norestart"
 }

要的命令的列表。

这篇关于安装Windows应用程序/使用Amazon CloudFormation扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆