SYS 360 Lab 3 1 - JadenGil/Jaden-Tech-Journal GitHub Wiki
To get things started here we will have to install the latest version of AWS CLI which we can do by downloading the installer from this website:
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
Deliverable 1:
Config AWS CLI
To configure AWS CLI we will need a valid access key, secret access key, and session token. We can get these by checking the AWS info in the sandbox environment:
Then we will copy the info from the gray box in the sandbox to:
%USERPROFILE%.aws\credentials
If this folder doesn't exist run "aws configure" in the command line
The credential file will look something like this when all is set and done:
Running instance from CMD
To run an AWS instance from CMD we will need to gather some information first. We will need to make a Key pair and a security group just like haw we have in the previous labs and we will also need to get an AMI instance ID.
Once we have gathered all of that information we can go into CMD and run the highlighted command
Deliverable 2:
Connecting to the instance
We will need a public IP and DNS to connect to the instance. To get these we will need to run the command aws ec2 describe-instances
The output should look like this:
Then we can SSH the same way we have before but instead of EC2@publicIP it'll be ubuntu@publicIP
Deliverable 3:
And now we can terminate our instance
Deliverable 4: