Using Chef Solo to create an instance of Windows EC2 and load it

I am trying to automate the CI process for several .NET applications, and in an ideal world, I would like to deploy a Windows EC2 instance for each, download the instance to install Chef Solo, and then follow the Chef's Recipe to install some dependencies and the package itself.

However - I am a beginner and have no idea, even if it is possible, not to mention where to start :)

I am pretty good at command line tools for AWS, so I can twist AMI in order, but after that I got pretty stuck. I would like to avoid creating a custom AMI with a pre-installed chef, as this takes up a lot of advantages.

I think this is basically what I need to do - but (not surprisingly) focused on Linux:

http://www.opinionatedprogrammer.com/2011/06/chef-solo-tutorial-managing-a-single-server-with-chef/

Does anyone have a link to someone who has done this or the like before? Or is there a better way to accomplish what I would like to do?

Any help was appreciated.

+4
source share
2 answers

Well, this requires Chef to be installed on your AMI:

http://scottwb.com/blog/2012/12/13/provision-and-bootstrap-windows-ec2-instances-with-chef/

But this is a strategy for installing Puppet on the Windows AMI stock, which can be easily changed for the chef:

http://dansrandombits.blogspot.com/2012/06/bootstrapping-custom-windows-ec2.html

I can’t say that I have done this yet, but I have both in the bookmarks bar, since they were published, and were planning at some point to do this, at least in our development environment. It seems that as long as the chef has a quiet installation, you can remove this.

+4
source

I understand that this post is a bit old, but for those who may still run into this. I provide servers using Chef-Solo. Essentially, I configure the instance User-Data to download and install Chef, download the cookbooks / recipes, and then run Chef-Solo.

Here is a blog post I made to demonstrate the steps: http://thesysadminswatercooler.blogspot.com/2015/11/aws-bootstrap-windows-ec2-instance-with.html

0
source

All Articles