Lab1-Account Setup
Lab1-Account Setup
Lab1-Account Setup
1. Most of the labs in this option has been developed using AWS Free Tier account.
3. Log back into aws.amazon.com to verify your account has been created.
2. Log into your AWS with your root account (...@ mybcit.ca account )
3. Download and install a virtual MFA application to your mobile device. See list in the
screen shot below. Given the choice, you may select Google Authenticator.
4. On the AWS Console, click on your root account (your name) and select “My Security
Credentials”
1
5. Under “Multi-factor authentication (MFA)” click on Activate MFA.
7. From the wizard, choose Show QR code and use the authenticator on your mobile device
8. You will be required to enter two numbers. Wait up to 30 seconds for your mobile to
10. Now, when you log into your root account, you will be asked to enter your
2
11. After logging, on the AWS Console, click on your root account (your name) and select
12. Click on Access keys (access key ID and secret access key) and then click on Create
3
13. Download Key file and SAVE it in a secure place, we need it for all the three cloud
Downloaded file contains access key ID and secret access key for your root user.
2. In the top right corner, click on the drop down menu next to your name.
5. Under Preferences, turn on “Receive PDF Invoice by Email”, Receive Free Tier Usage
4
6. Save the Preferences.
7. Click “Manage Billing Alerts” under the “Receive Billing Alerts” paragraph.
8. This will take you to the CloudWatch area of the AWS Console. We will go into more
9. If necessary, change the Region to US East (N. Virginia). Billing metric data is stored in
12. Choose “Select metric”. In the All metrics tab, choose “Billing”, “Total Estimated
13. Select the check box next to EstimatedCharges, and choose Select metric.
5
14. We want to receive an email when we receive ANY charges. Under Whenever Estimated
Charges is, select Greater and enter the monetary amount (“0.01” USD) that must be
Click on next.
17. Make sure to confirm your email address when you get confirmation email.
6
18. Click next and set the name as Billing Alarm.
7
Part 4: Create new IAM user and Customize sign in link for new IAM user
a. Type “IAM “into the AWS Services search window and go to the IAM
dashboard.
c. Change the name of the sign-in link to make it easy to remember. I used “comp
3962-bcit”. Use your student Id, A00… . Must be unique across all regions!
a. This will be the user you may use most of the time to sign in.
b. You will use it in combination with the IAM user’s sign-in link.
8
d. Enter a user name. I suggest CCO-your first name. CCO stands for Cloud
Computing Option.
g. Click Next:Permissions.
9
h. Click “Attach existing policies directly.
m. Download the CSV file containing the Access key ID and Secret access key.
If you lose this file, you will have to delete the user and recreate the user.
10
n. Click the “Send email” button the right. It will contain the login link for your new
user.
11
3. Enable MFA for this new user:
d. In the middle of the screen, look at “Assigned MFA device.” Currently set to No.
12
f. When you sign in using the IAM sign-in URL and the user name, you will not
receive a text message with the authentication code. You must go to the
Authenticator app and use the six-digit code that is displayed in the app.
g. Finally, sign in using the link in your email and the new user.
13
Part 5: Use the AWS CLI (your challenge)
1. Install and configure the AWS CLI on your local system (Windows, Mac). Configure it
by running aws configure command. You may configure it with root or IAM user.
2. Using AWS CLI, create an s3 bucket. Bucket name should be globally unique.
3. Copy a simple file from your machine into your new bucket.
aws --version
aws configure
aws s3 ls
14
Lab deliverables:
After finishing all parts of this lab, call your instructor and show your work:
1. [2 mark] Login to AWS console using your root account with MFA
2. [2 mark] Login to AWS console using your customize IAM user link with MFA
4. [1 mark] Confirm that you have saved Access Key ID and Secret Access Key for the root
6. [2 mark] Copy the AWS CLI commands for part 5 in a text file and submit it on learning
Cleanup:
15