Serverless Applications with AWS Lambda
Claudio Canales
Senior DevOps Engineer

Trigger
SDK call (inside handler)


{
"Records": [{
"s3": {
"bucket": {"name": "…"},
"object": {"key": "…"}
}
}]
}

boto3).


PutItem writes.GetItem reads by key.Query finds related items.
GetObject fetches content.PutObject writes a new derived file.

import boto3
ddb = boto3.client("dynamodb")
def handler(event, context):
ddb.put_item(
TableName="files",
Item={"pk": {"S": "1"}},
)


AccessDeniedException
required action denied


PutItem writes metadata to DynamoDB.

Serverless Applications with AWS Lambda