This cookbook sets up a VPC, locked down security group and machine to run streaming gaming on AWS.
- Install the Chef-DK.
- Checkout this cookbook and navigate to the root directory.
- The following instructions assume you want to run the cookbook using chef local mode. If you want to run it on a normal Chef Node, update the cookbook to fit into your workflow accordingly.
- Create or modify
~/.aws/credentials
and put the credentials you want to use under a profile that matches your username. Mine looks something like:
[tball]
aws_access_key_id=BLAH
aws_secret_access_key=BLAH1
- Run
chef shell-init
and follow its instructions to set the bundled Ruby as the current ruby. - Run
chef install && chef export .chef
. - Run
chef-client -c ./.chef/knife.rb -z
and wait for the chef run to finish. - Log into the instance with Windows Remote Desktop. The IP address for the machine can be found in the AWS console. Use the login credentials listed at the bottom of the instructions and change the password. Then follow the rest of the instructions and profit!
To destroy the instance when you are done run chef-client -c ./.chef/knife.rb -z -n destroy
. This will destroy the machine, security group, subnet and VPC.