1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
To schedule a Lambda function to run on a regular basis, use CloudWatch Events.
Scanning a whole DynamoDB table may not be the most efficient way of doing things but here's some code anyway:
import boto3
ddbclient = boto3.client('dynamodb')
def lambda_handler(event, context):
paginator = ddbclient.get_paginator('scan')
iterator = paginator.paginate(TableName='YourTableNameHere')
for page in iterator:
for item in page['Items']:
<do some work here>
Contenus pertinents
- demandé il y a 9 mois
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 10 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 10 mois
Okay cool and how can i schedule this lambda function to run every week?
Use CloudWatch Events with a cron expression telling it when you want to run the function.