[chef] Re: Newbie needs help creating AWS EC2 Windows instance


Chronological Thread 
  • From: Fabien Delpierre < >
  • To: chef < >
  • Subject: [chef] Re: Newbie needs help creating AWS EC2 Windows instance
  • Date: Thu, 24 Sep 2015 14:57:08 -0400

Hi Alex,
Yes, knife ec2 server create is where you want to start.
There's a serviceable, if minimal (and possibly insufficient for your use) example of a command at https://github.com/chef/knife-ec2:

$ knife ec2 server create -r 'role[webserver]' -I ami-7000f019 -f m1.small -A 'Your AWS Access Key ID' -K "Your AWS Secret Access Key"

The -r flag sets the Chef run list and I think the other ones are self-explanatory.
You should run the following command to get a list of all the flags:
$ knife ec2 server create -h

The one command above will accomplish two things:
1. Create an AWS EC2 instance matching the specified settings
2. Once AWS is done baking the EC2 instance, it will then be bootstrapped with chef-client, registered to your Chef server, and a first chef-client run will occur.



On Thu, Sep 24, 2015 at 2:39 PM, Alex Neihaus < " target="_blank"> > wrote:
Hello,

Total Chef newbie.

I am trying to spin up a Windows Server instance using knife ec2. I'm stuck conceptually on how to accomplish this using knife. Should I try knife ec2 server create? If so, can someone please help with a command I can pattern from? (The knife ec2 doc is, ahem, a little sparse).

Thanks!




Archive powered by MHonArc 2.6.16.

§