Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

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

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
295 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.

I've written about how to bootstrap a windows instance on AWS using CloudFormation

Basically the flow is as follows

  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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...