Professional Documents
Culture Documents
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
CERTIFICATE
This is to certify that Mr. / Miss/Mrs. Sharma Simran with Roll No.15
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
INDEX
Practical Date
1 Introduction 31/08/2021
A] Create a bucket
E] Explore versioning
B] Add data
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
C] Create a table
E] Query data
ABP News
Buzzdial
Classle
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Practical No. 1
A] Creating an AWS Account – A Step by Step Process
Creating an AWS Account is the first step you need to take in order to learn Amazon Web
Services. Signing up for AWS provides you with all the tools you require to become an AWS
professional.
In this practical, we will look at the step-by-step process of Creating an AWS Account.
Step 1 – Visiting the Signup Page
Head over to the Amazon Web Services website for Creating an AWS Account.
You should see something like below:
In order to continue, click the Complete Sign Up button in the middle of the screen or on the
top right corner of the screen. You will see the below screen.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
If you are an existing user, you can sign in. Or you can click on the Create a new AWS
account button. On this screen, you can also select your language preference from the
dropdown below.
Step 2 – Entering User Details
After you have chosen to Create a new AWS account, you will see the below screen asking
for few details.
You can fill up the details as per your requirements and click Continue.
Next you will be asked to fill up your contact details such contact number, country, address
and so on. You should fill them up properly because your contact number is important for
further steps.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Note that unless you are creating an account for your organization,
it is better to select Account Type as Personal.
After filling up the details, click on the Create Account and Continue button at the bottom of
the form.
Step 3 – Filling up the Credit Card details
For Creating an AWS Account, you need to enter your Credit Card details.
However, don’t worry. This will not charge anything from your account (except for a
verification amount that will be refunded back). But this is required in case you exceed the
free-tier limit available with a new AWS Account.
After entering the details, click on Secure Submit button. It might take a while to process the
request depending on your bank/credit card company servers.
Step 4 – Identity Confirmation
Once the credit card details are confirmed, you will need to complete the Identity
Confirmation step. You will see the below screen:
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Basically, you need to select a mode to confirm your identity. It could be a Text Message or a
Voice call to your valid phone number.
Once you have verified successfully, you should see a screen like below:
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Unless you are planning to do some professional development, I would suggest selecting the
Basic Plan. It is Free of cost and great for learning purposes.
The other plans are Developer Plan and a Business Plan. But both of them are paid options.
Once you select your plan, you will see the below Welcome screen. From here on, you can
Sign in to your AWS Console.
Here, you also have the option of personalizing your experience of using Amazon Web
Services.
However, you can also simply continue by clicking Sign in to the Console. After this, you
will be again presented with the sign in screen where you can now use your credentials to
login.
Finally, after logging in, you should be able to see the AWS Management Console as below:
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
If you have reached this far, you have successfully finished Creating an AWS Account.
Understand the AWS Free Tier
The great thing about Amazon Web Services is that you get a free tier when you create an
account.
This is extremely useful if you want to learn AWS without spending money on provisioning
servers and so on.
However, not all stuff available on AWS qualifies for Free. Also, there are categories such as
Always Free and 12 Months Free.
You can get more details about them at this link.
In our series of learning AWS, we will try to keep ourselves within the free tier as much as
possible.
Conclusion
We have now successfully finished creating an AWS Account and also verified it so that it
can be used to learn AWS.
B]
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Navigation bar
It shows the various AWS services like Amazon S3, Amazon VPC, CloudFront,etc
Navigation Pane
It shows various other options which can be navigated like Instances, Spot requests, etc.
Current Page
The page which is currently displayed
Public DNS
The Domain Name System (DNS) is the hierarchical and decentralized naming
system used to identify computers, services, and other resources reachable through
the internet or other internet protocol networks.
The resource records contained in the DNS associate domain names with other forms
of information.
These are most commonly used to map human-friendly domain names to the
numerical IP addresses computers need to locate services and devices using the
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
underlying network protocols, but have been extended over time to perform many
other functions as well.
The Domain Name System has been an essential component of the functionality of
the Internet since 1985.
Private DNS
When you create a VPC endpoint service, we generate endpoint-specific DNS hostnames that
you can use to communicate with the service. These names include the VPC endpoint ID, the
Availability Zone name and Region Name, for example, vpce-1234-abcdev-us-east-1.vpce-
svc-123345.us-east-1.vpce.amazonaws.com. By default, your consumers access the service
with that DNS name and usually need to modify the application configuration.
Zone
An Availability Zone (AZ) is one or more discrete data centers with redundant power,
networking, and connectivity in an AWS Region.
AZs give customers the ability to operate production applications and databases that
are more highly available, fault tolerant, and scalable than would be possible from a
single data center.
All AZs in an AWS Region are interconnected with high-bandwidth, low-latency
networking, over fully redundant, dedicated metro fiber providing high-throughput,
low-latency networking between AZs.
All traffic between AZs is encrypted. The network performance is sufficient to
accomplish synchronous replication between AZs. AZs make partitioning applications
for high availability easy.
If an application is partitioned across AZs, companies are better isolated and protected
from issues such as power outages, lightning strikes, tornadoes, earthquakes, and
more. AZs are physically separated by a meaningful distance, many kilometers, from
any other AZ, although all are within 100 km (60 miles) of each other.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Description of :
Instance ID
To get information about the Amazon EC2 instance that runs on your AWS Batch job, you
must first get the container ID of your job. Then, you can use the container instance ID to get
your EC2 instance ID. Finally, you can use your EC2 instance ID to get the IP address of that
instance.
Instance State :
The state of the instance as a 16-bit unsigned integer.
The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values
between 256 and 65,535. These numerical values are used for internal purposes and should be
ignored.
The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between
0 and 255.
Instance Type:
The ability to change the instance type of an instance contributes greatly to the agility
of running workloads in the cloud.
Instead of committing to a certain hardware configuration months before a workload
is launched, the workload can be launched using a best estimate for the instance type.
If the compute needs prove to be higher or lower than expected, the instances can be
changed to a different size more appropriate to the workload.
Instances can be resized using the AWS Management Console, CLI, or API. To resize
an instance, set the state to Stopped. Choose the “Change Instance Type” function in
the tool of your choice (the instance type is listed as an Instance Setting in the console
and an Instance Attribute in the CLI) and select the desired instance type.
Restart the instance and the process is complete.
Security Groups:
If an instance is running in an Amazon VPC you can change which security groups are
associated with an instance while the instance is running. For instances outside of an Amazon
VPC (called EC2-Classic), the association of the security groups cannot be changed after
launch.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
PRACTICAL 2
An Aws Iam User
START LAB
1. At the top of your screen, launch your lab by choosing Start Lab
This starts the process of provisioning your lab resources. An estimated amount of time to
provision your lab resources is displayed. You must wait for your resources to be provisioned
before continuing.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
In this task, you will explore the Users and Groups that have already been created for you in
IAM.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
● user-1
● user-2
● user-3
5. Click user-1
This will bring to a summary page for user-1. The Permissions tab will be displayed.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
● EC2-Admin
● EC2-Support
● S3-Support
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
This will bring you to the summary page for the EC2-Support group.
This group has a Managed Policy associated with it, called AmazonEC2ReadOnlyAccess.
Managed Policies are pre-built policies (built either by AWS or by your administrators) that
can be attached to IAM Users and Groups. When the policy is updated, the changes to the
policy are immediately apply against all Users and Groups that are attached to the policy.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
12. Click on AmazonEC2ReadOnlyAccess under Permissions tab and a new browser window
opens. Now click on () JSON.
A policy defines what actions are allowed or denied for specific AWS resources This policy
is granting permission to List and Describe information about EC2 Elastic Load Balancing,
CloudWatch and Auto Scaling. This ability to view resources, but not modify them, is ideal
for assigning to a Support Role.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
15. Click on AmazonS3ReadOnly Access under Permissions tab and a new browser window
opens. Now click on {}JSON.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
This Group is slightly different from the other two instead of a Managed Policy, it has an
Inline Policy, which is a policy assigned to just one User or Group. Inline Policies are
typically used to apply permissions for one-off situations.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
31. Paste the IAM users sign-in link into your private window and press Enter.
You will now sign-in as user-1, who has been hired as your Amazon S3 storage support staff.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
36. Navigate to the region that your lab was launched in by:
● Clicking the drop-down > arrow at the top of the screen, to the left of Support
● Selecting the region value that matches the value of Region to the left of these
instructions
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
38. Sign user-1 out of the AWS Management Console by configuring the following:
● At the top of the screen, click user-1
● Click Sign Out
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
39, Paste the IAM users sign-in link into your private window and press Enter.
This links should be in your text editor.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
42. Navigate to the region that your lab was launched in by:
● Clicking the drop-down > arrow at the top of the screen, to the left of Support
● Selecting the region value that matches the value of Region to the left of these
instructions
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
● You will receive an @ Error Access Denied because user-2 does not permission to
use Amazon S3.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
48. You will now sign-in as user-3, who has been hired as your Amazon EC2 administrator.
● Sign user-2 out of the AWS Management Console by configuring the following:
● At the top of the screen, click user-2
● Click Sign Out
49. Paste the IAM users sign-in link into your private window and press Enter.
50. Paste the sign-in link into your web browser address bar again. If it is not in your
clipboard,
retrieve it from the text editor where you stored it earlier.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
53. Navigate to the region that your lab was launched in by:
● Clicking the drop-down > arrow at the top of the screen, to the left of Support
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
● Selecting the region value that matches the value of Region to the left of these
instructions
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Practical 3
Working With S3 Buckets
Task 1: Create a bucket
You are new to Amazon S3 and want to test the features and security of $3 as you
configure the environment to hold the EC2 report data. You know that every object in
Amazon S3 is stored in a bucket so creating a new bucket to hold the reports is the first
thing on your task list.
In this task, you create a bucket to hold your EC2 report data and then examine the
different bucket configuration options.
1. At the top of your screen, launch your lab by choosing Start Lab
This starts the process of provisioning your lab resources. An estimated amount of time
to provision your lab resources is displayed. You must wait for your resources to be
provisioned before continuing.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
3. At the top-left of the AWS Management Console, on the Services menu choose S3.
You can also search for S3 at the top of the services menu.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
naming rules. Refer to the Amazon S3 bucket naming rules in the Additional resources
section at the end of the lab for more information.
5. Under the General configuration section, name your bucket: reportbucket (NUMBER)
Replace NUMBER in the bucket name with a random number. This ensures that you
Replace NUMBER in the bucket name with a random number. This ensures that you
have a unique name.
* Example Bucket Name - reportbucket987987
* Leave Region at its default value.
Selecting a particular region allows you to optimize latency, minimize costs, or address
regulatory requirements. Objects stored in a region never leave that region unless you
explicitly transfer them to another region.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Now that you have a bucket created for your report data, you are ready to work with
objects. An object can be any kind of file: a text file, a photo, a video, a zip file, and so
on.
When you add an object to Amazon S3, you have the option of including metadata with
the object and setting permissions to control access to the object.
In this task you test uploading objects to your reportbucket. You have a screencapture of
a daily report and want to upload this image to your S3 bucket.
7. Right-click this link new-report.png, choose Save link as, and save the file locally.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
8. In the S3 Management Console, find and select the bucket that starts with the name
Reportbucket
9. Choose Upload
This launches an upload wizard. Use this wizard to upload files either by selecting them
from a file chooser or by dragging them to the S3 window.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
11. Browse to and select the new-report.png file that you downloaded previously.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
14. In the reportbucket overview page, on the objects tab, locate the new-report.png
object,and choose the new-report.png file name.
The new-report.png overview page opens. Notice that the navigation in the top-left
updates with a link to return to the bucket overview page.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
15. In the Object overview section, locate and copy the Object URL link.
The link should look similar to: https://reportbucket987987.s3-us-west-
2.amazonaws.com/new-report.png
16. Open a new browser tab and paste the Object URL link into the address field, and
then press Enter.
You receive an Access Denied error. This is because objects in Amazon S3 are private by
default.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
17. Keep the browser with the Access Denied error open and return to the web browser tab
with the S3 Management Console.
19. Choose the Object Actions button and Make public, which will be the last item in the list.
Notice the warning Public access is blocked because Block Public Access settings are
turned on for this bucket. This error displays because this bucket is configured not to
allow public access. The bucket settings override any permissions applied to individual
objects. If you want the object to viewable by the general public, you need to turn off Block
Public Access (BPA).
20. Choose Make Public and read the warning at the top of the window indicating that it
"Failed to edit public access" again this is due to BPA being enabled.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
22. Use the navigation at the top to go back to the main reportbucket overview page.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
24. Under Block public access (bucket settings), choose Edit to change the settings.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
25. Deselect the Block a// public access option, and then leave all other options deselected.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
30. On the new-report.png overview page, choose the Object actions button and select Make
public.
Notice the warning: When public read access is enabled and not blocked by Block
Public Access settings, anyone in the world can access the specified objects. This is
designed to remind you that if you make the object public then everyone in the world will
be able to read the object.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
31. Choose Make Public and you should see the green banner Successfully edited public
access at the top of the window.
33. Return to the other browser tab that displayed Access Denied for the new-report.png and
refresh the page.
48. Right-click this link sample-file.txt, choose Save link as, and save the file locally.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
49. Return to the AWS Management Console, go to the Services menu and select S3.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
50. In the S3 Management Console tab, select the name of your bucket.
51. Choose and use the same upload process as in the previous task to upload the
sample-file.txt.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
52. Choose the sample-file.txt file name. The sample-file.txt overview page opens.
53. Under the Object overview section, locate and copy the Object URL link.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
54. In a new browser tab, paste the link into the address field, and then press Enter.
Once again, Access Denied will be displayed. You need to configure a bucket policy to
grant access to a// objects in the bucket without having to specify permissions on each
object individually.
55. Keep this browser tab open, but return to the tab with the S3 Management Console.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
57. In the Search field type EC2InstanceProfileRole. This is the Role that the EC2 instance
uses to connect to S3.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
58. Select EC2InstanceProfileRole. On the Summary page, copy the Role ARN to a text file
to be used in a later step.
It should look similar to this: arn:aws:iam::59612351 7671 :role/EC2InstanceProfileRole
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
62. In the Permissions tab, scroll to the Bucket Policy section, choose , choose Edit
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
A blank Bucket policy editor is displayed. Bucket policies can be created manually, or they
can be created with the assistance of the AWS Policy generator.
Amazon Resource Names (ARN)s uniquely identify AWS resources across all of AWS. Each
section of the ARN is separated by a ":° and represents a specific piece of the path to the
specified resource. The sections can vary slightly depending on the service being referenced,
but generally follows this format:
arn:partition:service:regiorr.account-id.resource
Amazon S3 does not require region or account-id parameters in ARNs, so those sections are
left blank. However, the ":' to separate the sections is still used, so it looks similar to
am:aws:s3:::reportbucket987987
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Refer to the Amazon Resource Names (ARNs) and AWS Service Namespaces
documentation link in the Additional Resources section at the end of the lab for more
information.
63.Copy the Bucket ARN to a text file to be used in a later step.
It is displayed below the Policy examples and Policy generator buttons.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
65.Choose Add Statement. The details of the statement you configured are added to a table
below the button. You can add multiple statements to a policy.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::416159072693:role/EC2InstanceProfileRole"
},
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::reportbucket987987/*"
}
]
}
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
71.Return to the AWS Systems Manager (SSM) window. If your session has timed out,
reconnect to the SSM using the steps from earlier in the lab.
72.Type the following to verify you are in the /home/ssm-user/reports directory.
73. Enter the following command to list all objects in your reportbucket. Replace NUMBER
with the number you used to create your bucket.
74.Type the following to list the contents of the reports directory.
75.Type the following to try coping the report-test1.txt file to the s3 bucket.
aws s3 cp report-test1.txt s3://reportbucket NUMBER
76.Type the following to see if the file successfully uploaded to S3.
77.Now type the following command to retrieve (GetObject) a file from S3 to the EC2
Instance.
78. Type the following to see if the file is now in the /reports directory.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
79. Return to the browser tab that displayed the Access Denied for the sample-file.txt and
refresh the page.
The page still displays an error message because the Bucket Policy only gave rights to the
principal called EC2lnstanceProfileRole.
80.Next, on your own, go back to the policy generator and add another statement to the
bucket policy allowing EVERYONE (a), Read access (GetObject). Take a moment to
generate this policy which allows both the EC2lnstanceProfileRole to have access to the
bucket while giving EVERYONE access to read the objects via the browser.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
81.To test if your policy works, go to your browser with the Access Denied error and refresh
it. If you can read the text, then congratulations! Your policy was successful.
82.Leave the tab open with the sample-file.txt displayed. You will return to this tab in the
next task.
In this task you created a bucket policy to allow specific access rights to your bucket. In the
next section you explore how to keep copies of files to prevent against accidental deletion.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
87.Right-click this link and save the text file to your computer using the same name as the
text file in the previous task: sample-file.txt.
While this file has the same name as the previous file, it contains new text.
88.In the S3 Management Console, on the reportbucket, choose the Objects tab. Under the
Objects section look form Show versions.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
89.Choose Upload and use the same upload process in the previous task to upload the new
sample-file.txt file
90.Go to the browser tab that has the contents of the sample-file.txt file.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
91.Make a note of the contents on the page, then refresh C the page. Notice new lines of text
appear.
Amazon S3 always returns the latest version of an object if a version is not otherwise
specified.
You can also obtain a list of available versions in the S3 Management Console.
92.Close the web browser tab with the contents of the text file.
93.In the S3 Management Console, choose the sample-file.txt file name. The sample-file.txt
overview page opens.
94. Choose the Versions tab and then select the bottom version which reads "null (Note: This
is notthe latest version).
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
96.Return to the AWS Management Console tab and choose the link for the bucket name at
the top-left to return to the bucket Objects tab.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
97.Locate them Show versions option and toggle the button to on to show the versions.
Now you can view the available versions of each object and identify which version is the
latest. Notice the new-report.png object only has one version and the version ID is null. This
is because the object was uploaded before versioning was enabled on this bucket.
Also notice that you can now choose the version name link to navigate directly to that version
of the object in the console.
98.Next to Show versions toggle the button to off CD to return to the default object view.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
104.Locate them Show versions option and toggle the button to on to show the versions.
Notice that the sample-file.txt object is displayed again, but the most recent version is a
Delete marker. The two previous versions are listed as well. If versioning has been enabled
on the bucket, objects are not immediately deleted. Instead, Amazon S3 inserts a delete
marker, which becomes the current object version. The previous versions of the object are not
removed. Refer to the Additional Resources section at the end of the lab for links to more
information about versioning.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
105. Select the checkbox to the left of the version of the sample-file.txt object with the Delete
marker.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
110.Next to Show versions toggle the button to off CD to return to the default object view.
Notice that the sample-file.txt object has been restored to the bucket. Removing the delete
marker has effectively restored the object to its previous state. Refer to the Additional
Resources section at the end of the lab for links to more information about undeleting S3
objects.
Next, you delete a specific version of the object.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
111.To delete a specific version of the object, locate them Show versions option and toggle
the button to on to show the versions.
You should see two versions of the sample-file.txt object.
112.Select the checkbox to the left of the latest version of the sample-file.txt object.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
117.Next to Show versions toggle the button to off CD to return to the default object view.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
118.Choose the sample-file.txt file name. The sample-file.txt overview page opens.
119.Copy the Object URL link displayed at the bottom of the window.
120.In a new browser tab, paste the link into the address field, and then press Enter. The text
of the original version of the sample-file.txt object is displayed.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
PRACTICAL 5
Amazon DynamoDb
Task 1: Create a New Table
In this task, you will create a new table in DynamoDB named Music. Each table requires a
Primary Key that is used to partition data across DynamoDB servers. A table can also have
a Sort Key. The combination of Primary Key and Sort Key uniquely identifies each item in a
DynamoDB table.
1. In the AWS Management Console, choose Services, then choose DynamoDB.
Note Choose Switch to the new console on the top of the page if you see the option.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
In this task, you will add data to the Music table. A table is a collection of data ona
particular topic.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Each table contains multiple items. An item is a group of attributes that is uniquely
identifiable among all of the other items. Items in DynamoDB are similar in many ways to
rows in other database systems. In DynamoDB, there is no limit to the number of items
you can store in a table.
When you write an item to a DynamoDB table, only the Primary Key and Sort Key (if used)
are required. Other than these fields, the table does not require a schema. This means that
you can add attributes to one item that may be different to the attributes on other items.
10. In the left navigation pane, choose Items.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
21. Choose Create item to store the new Item with its four attributes.
The item will appear in the console.
22. Now create a second Item, using these attributes:
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
A query operation finds items based on Primary Key and optionally Sort Key. It is fully
indexed, so it runs very fast.
27. In the left navigation pane, choose Items.
28. Choose Music.
29. Choose Query.
Fields for the Partition Key (which is the same as Primary Key) and Sort Key are now
displayed.
30. Enter these details:
* Partition key: Psy
* Sort key: Gangnam Style
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
PRACTICAL 6
Task 1: Launch an Amazon Redshift Cluster
In this task, you will launch an Amazon Redshift cluster. A cluster is a fully managed data
warehouse that consists of a set of compute nodes. Each cluster runs an Amazon Redshift
engine and contains one or more databases.
When you launch a cluster, one of the options you specify is the node type. The node type
determines the CPU, RAM, storage capacity, and storage drive type for each node. Node
types are available in different sizes. Node size and the number of nodes determine the total
storage for a cluster.
3. In the AWS Management Console, on the Services menu, click Amazon Redshift. You
can also type in the search box to select the AWS Service (eg Redshift) that you wish to use.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
14. Scroll to the bottom of the screen, then click Create Cluster
The cluster will take a few minutes to launch. Please continue with the labs steps.
There is no need to wait.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
16. Wait for the Status of your cluster to display Available before continuing to the next task.
Task 2: Use the Redshift Query Editor to Communicate with your Redshift Cluster
Amazon Redshift can be used via industry-standard SQL. To use Redshift, you require an
SQL Client that provides a user interface to type SQL. Any SQL client that supports JDBC
or ODBG can be used with Redshift.
For this lab, you will use the Amazon Redshift Query editor.
17. In the left navigation pane, click EDITOR,then select Connect to database then configure:
● Cluster: lab
● Database name: labdb
● Database user: master
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Before running this command, you will need to insert the ROLE that Redshift will use to
access Amazon S3.
22. To the left of the instructions you are currently reading, copy the value for Role.It will
start
with: arn:aws:iam::
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
23. Paste the Role into the query window, replacing the text YOUR-ROLE.
This 2nd line should now look like: CREDENTIALS 'aws iam role=arn:aws:iam.."
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
PRACTICAL 7
Task 1: Create Your KMS Master Key
In this task you will create a KMS master key. A KMS master key enables you to easily
encrypt your data across AWS services and within your own applications.
3. In the AWS Management Console, on the Services menu,click Key Management Service.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
6. On the Define key administrative permissions, select the user or role you're signed into
the Console with.
This user is displayed at the top of the page,to the left of the region
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
7. Click Next
Key Administrators are users or roles that will manage access to the encryption key.
8. On the Define key usage permissions page, select the user or role you're signed into the
Console with.
9. Click Next
Key Users are the users or roles that will use the key to encrypt and decrypt data.
10. On the Review and edit key policy page: Review the key policy
Click Next
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
13. If you see the New Event history features available in the new CloudTrail console with
Try out the new console, click Try out the new console, otherwise you can ignore this
warning.
14. If you see a warning saying The option to create an organization trail is not available for
this AWS account., you can ignore this warning.
15. If you see You do not have permissions to perform this action. An administrator for your
account might need to add permissions to the policy that grants you access to CloudTrail,
you can ignore this warning.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
29. For Encryption key type, select AWS Key Management Service key (SSE-KMS)
30. For AWS KMS key Select Choose from your AWS KMS keys
31. From the drop down of the KMS master key, select myFirstkKey
32. Scroll to the bottom of the screen, then click Upload
33. Click Close from the right corner of the Upload: status page.
34. Return to the bucket details by clicking the bucket name (as seen on the upper left)
35. Record the Last modified time to your text editor.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
36. Return to the bucket details by clicking the bucket name (as seen on the upper left)
Task 4: Access The Encrypted Image
In this task, you will try to access the encrypted image through both the AWS Management
Console and the S3 link.
37. In the object tab select image name and the click actions and Click Open
The image opens in a new tab/window.
Amazon S3 and AWS KMS perform the following actions when you request that your data
be decrypted.
● Amazon S3 sends the encrypted data key to AWS KMS
● AWS KMS decrypts the key by using the appropriate master key and sends the
plaintext key back to Amazon S3
● Amazon S3 decrypts the ciphertext and removes the plaintext data key from memory
as soon as possible
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
39. Click the image name and copy the S3 Object URL to your text editor.
The S3 Object URL should look similar to https://mycloudtrailbucket10619.s3-us-west
2.amazonaws.com/Eiffel.jpg
40. Paste the S3 Object URL that you copied earlier into a new browser/window.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
57. Do you see a log file who's Last modified date is later than the time stamp for the image
file you downloaded?
Task 6: Manage Encryption Keys
In this task you will manage encryption keys for users and roles.
53. On the Services menu, click Key Management Service.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
55. In the Key users section, select the user or role that you are signed in with.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
PRACTICAL 8
Case Study : Amazon Architecture
ABP News
About ABP News
ABP News Network (ANN)—one of the largest TV networks in India—operates five
news channels in Indian languages such as Hindi, Marathi, Bengali, Punjabi, and
Gujarati, and reaches out to more than 150 million TV audiences per week.
Like most media businesses worldwide, ANN has been disrupted by new technologies
and rising consumer demand for immediate and ubiquitous access to content. Unlike
some industry participants, however, the Noida-headquartered business has seized the
opportunities presented by the digital age. Its online news website—
www.ABPLive.in—and app—ABP Live—caters to more than 40 million monthly
visitors.
The Challenge
News in India can occur in a more dynamic, volatile, and unpredictable way
compared to other international markets. This means spikes in traffic to digital and
mobile news services can occur at any time of the day with minimal warning.
A major breaking news story can increase traffic by three times, rising to six times for
elections that may occur as often as once a year.
It was therefore extremely important for ANN to scale the technology infrastructure
quickly to support these traffic spikes.
In 2013, ANN predicted extending its digital presence from a single website to a
range of services could increase its page views from 150 million to over 500 million.
The business had to sustain this growth cost-effectively while delivering the
responsiveness and reliability that digital consumers demanded. “Considering all the
factors in play, we wanted a robust, cost-optimized infrastructure that was reliable and
highly scalable,” says Retesh Gondal, head of digital technology at ANN.
Furthermore, ANN could not gain the visibility to control and optimize its use of
infrastructure resources.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
The business also risked ceding competitive advantage to rival media companies by
delivering new websites, mobile services, and other products to market in months
rather than weeks.
The limitations of the infrastructure meant editors would be forced to take up to seven
minutes to upload a news video several times longer than a media business operating
in a highly competitive marketplace could tolerate.
Ultimately, ANN risked not being able to deliver news quickly to meet viewer
demands for immediacy and secure a strong position in the competitive digital news
market in India. Furthermore, the business could not position itself to enter new
geographic markets seamlessly and cost-effectively.
ANN’s business and technology leaders were acutely aware that selecting the right
cloud provider was critical to the future of the business. Despite ceding first-mover
advantage in digital news to rival media companies, ANN was keen to secure market
leadership among key readership demographics by providing compelling news
content over a range of digital and mobile channels.
This required working with a cloud provider that could scale quickly to support traffic
spikes and longer-term growth in traffic to web, mobile, and video news services. In
2014, the company decided to migrate its infrastructure, applications, and services to
AWS.
“We selected AWS because of the flexibility to align our infrastructure costs and
consumption with demand, and the ease and simplicity with which we could move to
the AWS Cloud,” says Gondal. “AWS also specializes in infrastructure services that
enable businesses like ours to distribute video content and mobile applications to
users’ smartphones, tablets, and personal computers.”
ANN completed its initial migration to AWS in only four months and has continued
to expand the services running in the public cloud architecture to include additional
websites, mobile applications, and a video content management system.
“We evaluated all the video content management service providers in our market but
determined the best option was to develop a system in-house and use workflow,
storage, and video file conversion tools provided by AWS,” says Gondal. ANN
uses Amazon Simple Storage Service (Amazon S3) to store video files and Amazon
Elastic Compute Cloud (Amazon EC2) to run the system used to manage the video
content. Amazon Elastic Transcoder converts ANN’ video files from source to
different formats for viewing on a range of devices.
The business also opted to develop a video analytics system in-house. “We tested the
market and either the costs of the solutions were too high, or they could not deliver
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
the type of data we wanted to collate,” says Gondal. “We elected to deploy our own
solution to analyze video usage and service quality using data streaming, collection,
loading, warehousing, and processing tools provided by AWS.”
ANN is using Amazon Kinesis to load streaming data into an Amazon S3 bucket and
an Amazon Redshift data warehouse, with Amazon EMR used to complete data
processing activities.
Key to ANN’ success is its choice of AWS services to run its mobile applications.
According to a Morgan Stanley report quoted in the Economic Times, India is
expected to overtake the United States as the world’s second-largest smartphone
market in 2017.
According to the publication, the researchers estimate the Indian market will grow by
a compound annual growth rate of 23 percent through 2018, and account for 30
percent of global growth during the period.
This trend is creating a huge market for mobile applications to deliver a range of
content, including news, features, and analysis. ANN elected to use AWS Lambda to
deliver an architecture that seamlessly updates content feeds served from Amazon S3
to mobile users without requiring the management and maintenance of a single server.
The Benefits
Using AWS has enabled ANN to support its increase in page views from 150 million
to 500 million and accommodate sharp spikes in traffic with high performance when
significant news events, including elections, occur. “Breaking news in India can result
in a dramatic surge in traffic.
ANN has also successfully extended its portfolio of products and services from a
single website to several websites, video content and a mobile application, since
migrating to the AWS Cloud. “The scalability factor of AWS has given us peace of
mind and enabled us to think more about what we want to achieve with our
applications rather than how to manage them,” says Ramakrishnan Laxman, head of
digital business at ANN.
Aside from controlling costs, the business is now able to deliver new products and
services far more quickly and cost-effectively than its previous managed-service
environment. Editors can now upload videos in less than one minute to meet demand
for immediacy, rather than the six to seven minutes required in traditional
infrastructure.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
This has positioned ANN to compete more effectively with its rivals. Furthermore,
AWS’ global footprint has given ANN the option of expanding beyond its home
market into new regions.
“The AWS team has always let us know about the new cloud services it is launching,
and how we can use AWS to optimize our existing workflows,” says Gondal.
Using AWS has given ANN the confidence to evaluate using advanced tools such as
machine learning and artificial intelligence to deliver on a range of new products.
“Our experience using AWS has been extremely good,” says Gondal. “While we were
quite late to enter the digital news and video content space, we’ve been able to expand
quickly and become one of the leaders in providing these services to consumers in
India and beyond by using AWS.”
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Buzzdial selected Amazon Web Services (AWS) as a cloud service provider that
could meet its needs. “As we explored options during our establishment phase, AWS
emerged as a frontrunner to host our services,” says Howard.
“We found it extremely easy to use and massive in scale, which suited our plans to
operate in Australia, Europe, the United States and other markets.” The fact AWS
operated data centers around the world meant Buzzdial could provision infrastructure
and deliver services from locations geographically close to broadcast events in a range
of countries.
The business worked closely with AWS solution architects in New Zealand to
determine the best architecture for its service. “The teams were extremely helpful in
validating some of the ideas we had that made it to market. They also helped us reject
options that simply weren’t going to work,” says Howard.
Buzzdial then developed the first stage of its service and created the supporting AWS
architecture in four weeks. Initially the business created a monolithic web application
that was not optimized for continuous development.
As Buzzdial learned more about how AWS performed, its engineers opted to break
the application up into a series of smaller, interoperating pieces. This process has
enabled Buzzdial to pursue an agile software development process over the last 18
months, involving regular releases and continuous development.
Buzzdial’s application now runs in Amazon Elastic Compute Cloud (Amazon EC2)
instances residing behind Elastic Load Balancing to distribute incoming traffic in such
a way as to maximize fault tolerance and minimize latency.
Caching is undertaken at the Amazon EC2 level to prevent the database infrastructure
from being overloaded during periods of high demand. Buzzdial develops the
application in house on Mac OS X machines and uses an Apache - Subversion -
Beanstalk workflow to develop code for testing in the AWS infrastructure. The
infrastructure is hosted in the US East (Northern Virginia) region.
Other services used include Amazon Simple Storage Service (Amazon S3) and
Amazon CloudFront which provide a content delivery network for all static web
resources including images, scripts, and style sheets. This significantly decreases load
on the Amazon EC2 instances.
The Benefits
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
The caliber of clients and importance of its second-screen service to their businesses
requires Buzzdial to undertake detailed monitoring and quality assurance processes.
“During a live event, we keep records of every single interaction with our
application,” explains Howard.
“We queue those records and store them in our databases to allow us to report back to
clients on the success of their broadcast event, and also provide detailed business
reports that we review internally.
In addition, we monitor our application in real time as it scales up and down to check
performance and error rates, and undertake extensive and aggressive load testing to
predetermine its capabilities. If there any concerns, we rework the application and
AWS infrastructure accordingly.”
To date, AWS has met all of Buzzdial’s needs in managing peak loads. “When we
reach a load limit during testing -and these only occur when we develop a code
incompatible with AWS–we’ve always found an easy answer within the AWS
solution stack,” Howard says.
For events scheduled days in advance, Buzzdial can provision resources to support
hundreds of thousands of concurrent users coming onboard in a 10-minute period, and
scale further if needed. If a customer conducts a broadcast event but fails to notify
Buzzdial, the service provider can still scale in 10 to 15 minutes to support 10s of
thousands of concurrent users.
The UK “rate the debate” interface engaged more than 50,000 users who declared
over 32 million data points of sentiment–expressions of whether they agreed or
disagreed with the views of a particular leader–during the event. Buzzdial was able to
effectively support this event in the UK using infrastructure based in the US East
(Northern Virginia) region.
Buzzdial calculates that its capital and operating costs for infrastructure are 96 percent
lower over two to three years than they would be with a physical infrastructure in a
collocated data center. “We sometimes get to the point of using AWS resources
equivalent to 60 physical servers.
Because we stress-test our infrastructure to a point well above estimated loads, this
number can increase to the equivalent of another 30 servers,” Howard says. “We
would have had to invest US$1.2 million in capital, plus US$24,000 per month in data
center collocation costs if we deployed a physical infrastructure. AWS is less
expensive and gives us an agility that a conventional data center environment cannot
match.”
Buzzdial would have also required six full-time equivalent administrators to manage
60 physical servers, costing about US$350,000, while the AWS infrastructure requires
about 20 percent of a single full-time employee’s time to administer.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
The nature of Buzzdial’s business means the organization has a low tolerance for
system problems during live events. Buzzdial has now achieved above 99.99 percent
availability during these events using AWS. The business has also achieved latency of
under 400 milliseconds globally, which means users receive a rapid response to their
interactions with the web application.
Buzzdial plans to add new AWS services in future as business grows. “One of the
benefits of being an agile business like ours is the ability to move rapidly and adopt
new technologies rapidly without having legacy equipment and processes in place,”
Howard says. “I believe we should be accessing all of the technologies available to us
from AWS to enable us to leapfrog solutions and take big steps forward.”
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Classle is also impressed with the growing list of additional services offered by AWS,
which the company has embraced to help further its own expansion.
Vaidya Nathan says, “The flexibility, reliability, and elasticity were the reasons for
the initial decision to use AWS. Over the past two years, other services coming from
AWS like Amazon Relational Database Service (Amazon RDS), Amazon
CloudFront, Amazon CloudWatch, Elastic Load Balancing, and Amazon Route
53 confirm that the decision was the right one.
As a startup, we have to worry about balancing scalability with cash preservation, and
we get the best of both worlds with AWS. We see AWS as a strategic fit for our long-
term business strategy.”
Classle uses Amazon Elastic Compute Cloud (Amazon EC2), with the Amazon
Elastic Load Balancing (Amazon ELB), Auto Scaling, and Amazon Elastic Block
Storage (Amazon EBS) features, to handle its application and analytics server needs.
Amazon RDS acts as Classle’s data warehouse and transactional database.
Amazon Simple Storage Service (Amazon S3), with the Reduced Redundancy
Storage (RRS) feature, serves the dual function of providing Classle’s content
downloads and acting as an origin server for Amazon CloudFront. The company has
established Amazon’s content delivery service Amazon CloudFront as an edge server
for streaming files and delivering the learning platform’s most requested video
downloads.
Classle indicates that the origin and edge server relationship the company has created
between Amazon S3 and Amazon CloudFront has allowed it to reduce its Webpage
load times by 180 percent and reduce its total costs by eight percent and in the case of
video streaming, it brought the time-to-market down to 2 days.
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
The company monitors its AWS infrastructure with Amazon CloudWatch and
uses Amazon Simple Notification Service (Amazon SNS) to delivery system load
alerts to its developers. Additionally, Classle routes its users to its websites with
Amazon’s Domain Name System (DNS) service, Amazon Route 53.
The Benefits
Based on its success in India, Classle plans to eventually expand its social learning
platform to the worldwide market. In the more immediate future, the company is
planning a Software-as-a-Service (SaaS) offering of its platform, in addition to the
Website-based version.
As Classle works toward these new goals, it will be looking to incorporate additional
services from AWS, such as Amazon Simple Email Service (Amazon SES) and AWS
CloudFormation, which assists developers in combining AWS resources within the
company’s infrastructure.
Vaidya Nathan says, “Adopting AWS has given our company a competitive
advantage, both at tactical as well as strategic levels. Thanks to AWS, we are
effectively competing with some large and strong players in the e-learning space.
Adopting AWS has let us keep our focus on the business and assume that the
infrastructure will be available to match the velocity and growth.”
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
Practical 9
Introduction to Amazon API Gateway
Task 1: Create a Lambda Function
1. In the AWS Management Console, on the | Services | menu, click Lambda.
Click on Create function
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
4. In the Code source window, double click on index.js file and delete the default content
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
6. Click Deploy
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
20. Click Test tab and configure the test event. In the Test event window configure:
* Name: BasicTest
Delete the provided keys and values, retaining an empty (} to represent an empty JsON
object:
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15
Sem III / Amazon Web Services / RJSITP304
SHARMA SIMRAN 15