AWS - 自动部署(.NET)到CloudFormation堆栈 [英] AWS - Automatic deployment (.NET) to CloudFormation stack

查看:221
本文介绍了AWS - 自动部署(.NET)到CloudFormation堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功使用了.NET中的CloudFormation模板建立一个堆栈。

I have managed to set up a stack using a CloudFormation template for .NET.

我还没有想出如何部署我的应用程序创建的堆栈。也就是有办法来自动化应用程序部署过程?

I still haven't figured out how to deploy my application to the created stack. Also is there a way to automate the app deployment process?

我已经看过AWS文档,但大多数人似乎使用的云初始化的从我的理解仅限于Linux。

I have looked at AWS docs but most of them seem to use cloud-init which from my understanding is Linux only.

感谢

推荐答案

您需要使用用户数据的组合来火了CFN-的init(安装为EC2Config脚本的一部分)和CloudInit ::元数据的东西下载源。

You need a combination of Userdata to fire off cfn-init (installed as part of the EC2Config scripts) and CloudInit::Metadata stuff to download the source.

我已经写如何引导一个Windows实例使用CloudFormation AWS

基本上流程如下

  1. 让你的包裹到一个可下载的位置
  2. 更新您的云的形成脚本,包括用户数据
  3. 在使用用户数据,执行CFN-INIT
  4. 在元数据,提供位置,以下载源文件或拉链
  5. 的元数据
  6. 的命令部分中执行命令部分
  1. get your package onto a downloadable location
  2. Update your cloud formation script to include userdata
  3. In the Userdata, execute cfn-init
  4. In the metadata, provide locations to download source files or zips
  5. Execute commands section in the "Commands" section of the metadata

这篇关于AWS - 自动部署(.NET)到CloudFormation堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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