In this video, I'm going to show you a lambda the blueprint for the Amazon S3 asynchronous invocation
example.
For that purpose, please open the A console and create a Lambda function.
And this time we can use a blueprint.
And in the blueprint you can search for the S3.
If you search for the S3, we can see that S3 get object example in here.
This is the Amazon S3 Get object example if you select this one.
Basically this is going to create an example, as we did during the election, but I'm going to show
you how it is performing.
This is similar to create a function.
We provide the function name and it is requiring the execution role.
We should give the execution role in here because this execution role is required some policies.
So if you scroll down, you can see that this is getting the policy template, which is the Amazon S3
object written permission.
And if you scroll down, you can specify the bucket name that triggered from this lambda function and
it is required the event type.
I'm giving the event type as a put you can see in here this is typical of our lambda function and we
are creating a trigger S3 trigger to our lambda function.
And if you scroll down you can see the an example lambda function code.
If we review the function, basically the lambda function retrieves the source S3 bucket name and the
key name of the uploaded object and the function used the Amazon S3 get object API to to retrieve the
content type of the object so we can trigger lambda function with S3 bucket name.
We are following this blueprint definition, but as you can see that the code style is a bit old and
using the old Willis SDK versions.