- Following the link to install chefdk: https://docs.getchef.com/install_dk.html. Make sure to "Set the System Ruby" in the tutorial. Thing will mess up if you don't set the path of ruby as /opt/chefdk/embedded/bin/ruby
- Following the link to install knife ec2: http://docs.getchef.com/plugin_knife_ec2.html
- git clone https://github.com/qianji/chef-lamp-shiny-ec2.git
- Go to the folder chef-lamp-shiny-ec2
- Replace 'Your AWS Access KEY ID','Your AWS Secrete Access Key', 'Your AWS Key Name', 'Your AWS SSH Key', 'EC2 Type' and Run the following command: knife ec2 server create --availability-zone us-east-1a --node-name data_analysis --flavor 'EC2 Type' --image ami-d87dc6b0 --identity-file 'Your AWS SSH key' --run-list "role[base],role[db_master],role[webserver]" --ssh-user ubuntu -A 'Your AWS Access KEY ID' -K 'Your AWS Secrete Access Key' -S 'Your AWS Key Name'
- The parameter of running knife ec2 can be found here: http://docs.getchef.com/plugin_knife_ec2.html. My example of the command is: knife ec2 server create --availability-zone us-east-1a --node-name data_analysis --flavor t2.micro --image ami-d87dc6b0 --identity-file ~/.ssh/data_analysis.pem --run-list "role[base],role[db_master],role[webserver]" --ssh-user ubuntu -A AKIAI4OZYSQ -K eOGuNzthAuJR -S data_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
qianji/chef-lamp-shiny-ec2
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published