I have dynamo db which name as "test-dynamo"
I need to capture in lambda function. If any update/Insert has happend to this dynamo table I need to see in the lambda
def gettable(table_name, dynamodb_client):
response = dynamodb_client.get_item(
TableName=table_name,
Key={
'id': {'S': key
}})
return response
def lambda_handler(event, context):
dynamodb_client = boto3.client('dynamodb')
boto3.resource('dynamodb')
res= gettable("test-dynamo",dynamodb_client )
print('event', event )
