Amazon Free AWS training in Stratford

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

Jump to: navigation, search

EDX Course
Week 2 - Exercise 4

Create an AWS IAM policy
Create and IAMS user
Create an IAMS user in step by step

Create an Amazon EC2 instance and configure AWS CLI with the access keys of the AWS IAM user
Create an Amazon EC2 instance and configure AWS CLI step by step Connect to the instance using SSH.



    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.