1
00:00:00,150 --> 00:00:07,260
In this video, I'm going to show you a lambda the blueprint for the Amazon S3 asynchronous invocation

2
00:00:07,260 --> 00:00:08,010
example.

3
00:00:08,310 --> 00:00:13,980
For that purpose, please open the A console and create a Lambda function.

4
00:00:13,980 --> 00:00:17,040
And this time we can use a blueprint.

5
00:00:17,040 --> 00:00:20,580
And in the blueprint you can search for the S3.

6
00:00:20,610 --> 00:00:26,310
If you search for the S3, we can see that S3 get object example in here.

7
00:00:26,490 --> 00:00:31,650
This is the Amazon S3 Get object example if you select this one.

8
00:00:32,940 --> 00:00:40,470
Basically this is going to create an example, as we did during the election, but I'm going to show

9
00:00:40,470 --> 00:00:42,420
you how it is performing.

10
00:00:42,450 --> 00:00:44,700
This is similar to create a function.

11
00:00:44,700 --> 00:00:48,900
We provide the function name and it is requiring the execution role.

12
00:00:48,930 --> 00:00:55,890
We should give the execution role in here because this execution role is required some policies.

13
00:00:56,280 --> 00:01:02,370
So if you scroll down, you can see that this is getting the policy template, which is the Amazon S3

14
00:01:02,370 --> 00:01:04,110
object written permission.

15
00:01:04,110 --> 00:01:10,740
And if you scroll down, you can specify the bucket name that triggered from this lambda function and

16
00:01:10,740 --> 00:01:12,630
it is required the event type.

17
00:01:12,630 --> 00:01:19,410
I'm giving the event type as a put you can see in here this is typical of our lambda function and we

18
00:01:19,410 --> 00:01:23,040
are creating a trigger S3 trigger to our lambda function.

19
00:01:23,040 --> 00:01:26,700
And if you scroll down you can see the an example lambda function code.

20
00:01:26,700 --> 00:01:32,850
If we review the function, basically the lambda function retrieves the source S3 bucket name and the

21
00:01:32,850 --> 00:01:41,340
key name of the uploaded object and the function used the Amazon S3 get object API to to retrieve the

22
00:01:41,340 --> 00:01:47,010
content type of the object so we can trigger lambda function with S3 bucket name.

23
00:01:47,010 --> 00:01:52,950
We are following this blueprint definition, but as you can see that the code style is a bit old and

24
00:01:52,950 --> 00:01:55,740
using the old Willis SDK versions.
