-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path1-6 AWS.txt
30 lines (22 loc) · 1.17 KB
/
1-6 AWS.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 1-6 Configuring Your Development Environment - Amazon EC2
# this command list is provided to accompany the demos in the Chef Fundamentals course
# run these commands to ensure you're setup properly.
# Commands are demonstrated on a MacOS terminal. If on a Windows machine, commands
# for navigation and file manipulation may vary.
# If unable to locate any of the tools, please ensure that your system path is
# properly configured as documented in the setup pdf.
# all commands assume working out of the home directory, ~/
# Run these commands on your local machine to connect to your cloud instance
cd ~
ssh -i /PATH/TO/AWS_KEY centos@PUBLIC_HOSTNAME
sudo chmod 400 /PATH/TO/AWS_KEY
ssh -i /PATH/TO/AWS_KEY centos@PUBLIC_HOSTNAME
# Run these commands on the cloud instance after connecting with ssh
centos@ip$ curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk -c stable -v 0.18.30
centos@ip$ chef --version
centos@ip$ sudo yum install nano -y
centos@ip$ sudo yum install vim -y
centos@ip$ exit
# when you're done with the exercises for the moment, exit the machine
centos@ip$ exit
# or consider destroying the cloud instance. Remember, these cost money over time!