Connect to the instance using SSH.

From MyWiki
Revision as of 17:04, 26 August 2019 by George2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
    Connect to the instance using SSH. You may refer to the instructions in the third exercise for connecting
 to the instance.
    Open the credentials.csv file that you downloaded earlier. Find the entry for edXProjectUser, and note 
the values for Access Key Id and Secret Access Key.
    On the instance terminal, type the below command.
 
    aws configure
 
    Follow the prompts on the screen and paste in the values for Access Key Id and Secret Access Key.
    For Region, type us-west-2.
    For Default output format, press ENTER.
    You have now configured the AWS CLI so that any CLI calls will operate with the credentials of the AWS IAM user edXProjectUser.
    Now query the information about the Amazon EC2 instances in your account. Type the command below.
 
    aws ec2 describe-instances
 
    You should see a JSON output with all the information of the Amazon EC2 instances in your account.
This means that you were able to successfully execute the AWS CLI command with the permissions attached
 to the edXProjectUser.