1
00:00:00,210 --> 00:00:06,060
In this video, we are going to perform antigen test for the Hands on lab, which is the Amazon S3,

2
00:00:06,090 --> 00:00:07,500
a Lambda and Dynamo.

3
00:00:07,500 --> 00:00:14,730
DB So we will invoke our Lambda function from the Amazon S3 with uploading any file to the bucket.

4
00:00:14,730 --> 00:00:18,540
And we will see the execution looks and we will see the dynamic DB items.

5
00:00:18,540 --> 00:00:20,100
So let's get started.

6
00:00:20,220 --> 00:00:26,940
So please, Ada, please open a console and go to the bucket and click the upload button.

7
00:00:27,090 --> 00:00:29,760
So create the edit files I have.

8
00:00:29,760 --> 00:00:38,370
Edit the upload text takes the file into our folder structure and please upload these text file into

9
00:00:38,370 --> 00:00:39,210
our bucket.

10
00:00:39,270 --> 00:00:40,590
Click the upload button.

11
00:00:41,490 --> 00:00:43,460
So upload succeeded.

12
00:00:43,470 --> 00:00:50,340
So that means our lambda function function is invoked and this will be right this item into dynamic

13
00:00:50,340 --> 00:00:51,120
DB table.

14
00:00:51,150 --> 00:00:56,370
To verify that, please go to a lambda function and go to monitor.

15
00:00:56,370 --> 00:00:57,690
And we've logs in the cloud.

16
00:00:57,690 --> 00:00:58,410
Which logs?

17
00:01:00,490 --> 00:01:08,170
So if you open the latest log stream, we will see the incoming event from the Amazon S3.

18
00:01:08,200 --> 00:01:14,170
You can see that this the incoming event comes from the Amazon S3 and if you scroll down, we can see

19
00:01:14,170 --> 00:01:20,500
that we will send upload an item in the bucket name in here and the object is here.

20
00:01:20,500 --> 00:01:25,690
So we will uploading these text file into the S3 bucket.

21
00:01:25,690 --> 00:01:33,160
So if you scroll down, you can see that we will get the success information from the get list object,

22
00:01:33,160 --> 00:01:36,900
from the bucket object, and there is two objects into the bucket.

23
00:01:36,910 --> 00:01:40,720
The first one is index, the second one is the upload text file.

24
00:01:40,840 --> 00:01:48,040
And if you scroll down, you can see the second content information, which is the our newly added upload

25
00:01:48,070 --> 00:01:54,040
object into the S3 and we are going to insert this item into Dynamo DB table.

26
00:01:54,040 --> 00:01:58,330
And here you can see the Dynamo DB object that is inserted successfully.

27
00:01:58,420 --> 00:02:04,390
Also, we can verify from Dynamo DB table, please open the MDB and open the bucket object's table.

28
00:02:04,420 --> 00:02:11,230
If you click the explore table items and run the scan command, you can see that newly uploaded text

29
00:02:11,230 --> 00:02:14,350
file is inserted as an item of our dynamo.

30
00:02:14,350 --> 00:02:14,830
DB.

31
00:02:15,190 --> 00:02:21,260
As you can see that we have successfully test and perform end to end test in this hands on loop.

32
00:02:21,280 --> 00:02:28,540
So we have successfully invoke our lambda asynchronously and use different SDK packages.
