- 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.
Archive powered by MHonArc 2.6.16.