TASKS:
- Log on to AWS Educate using your AWS educate starter account, and click AWS Console button.
- Launch a new instance using the Amazon EC2 console, in your default Region/Availability Zone.
- Select the Amazon Linux AMI.
- Choose the t2. medium instance type.
- Launch the instance in the default virtual private cloud (VPC).
- Assign the instance a public IP address (your choice), and add a tag to the instance of Key: Name, Value: ITEC6210-YourName.
- Create a new security group called ITEC6210-Group-YourName.
- Add a rule to the group ITEC6210-Group-YourName, allowing Secure Shell (SSH) access from any IP address.
- Launch the instance, and when prompted for a key pair, create a new public-private key pair—ITEC6210Key-YourName. Download the private key (a .pem file) to your workstation.
- Open a Linux terminal or command prompt window, and copy the private key into the working directory. Note, if on a pre-Windows 10 machine, you may need to download and install the CYGWIN “Linux emulator for Windows” tool by following the instructions provide here: www.cygwin.com.
- Run the chmod command on the key file, as follows: chmod 400 ITEC6210Key-YourName
- SSH into the instance using the public IP address, the user name ec2-user, and the ITEC6210Key-YourName .pem file.
The command format is:
ssh -i ‘.pem’ ec2-user@ - Use relevant Unix commands to navigate through the directory structure of your AWS t2 instance, and view the types of folders and files available.
- Close the SSH session by typing the exit command.
- Return to the AWS console and terminate the instance you created.