AWS Lambda로 구축하는 서버리스 애플리케이션
Claudio Canales
Senior DevOps Engineer

트리거(Trigger)
SDK 호출 (핸들러 내부)


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

boto3)를 호출합니다.


PutItem은 항목을 씁니다.GetItem은 키로 항목을 읽습니다.Query는 관련 항목을 조회합니다.
GetObject는 콘텐츠를 가져옵니다.PutObject는 새 파생 파일을 씁니다.

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


AccessDeniedException
required action denied


PutItem으로 DynamoDB에 메타데이터를 씁니다.

AWS Lambda로 구축하는 서버리스 애플리케이션