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


Chronological Thread 
  • From: Marky Jackson < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Newbie needs help creating AWS EC2 Windows instance
  • Date: Thu, 24 Sep 2015 20:37:10 +0000 (UTC)

It can be identity-file=~/.ssh/filename.pem



On Thursday, September 24, 2015 1:22 PM, Alex Neihaus < > wrote:


Thank you!

I am almost there. Can someone shed light on the --ssh-key parameter? I'm passing a local copy of a .pem file that is  on AWS but knife is saying it cannot be found. 



-----
Sent from Alex's mobile device. Please excuse typos and brevity.
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" class="removed-link" href=""> > 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.

§