
Amazon EventBridge starts an AWS Step Functions workflow when an AWS Backup restore test completes. It checks the restored Amazon DynamoDB table and reports to AWS Backup.
dynamodb:Scan SDK integration (Select COUNT, Limit 3) and calls the AWS Backup PutRestoreValidationResult API once with SUCCESSFUL or FAILED, so the result appears on the restore job. There's no AWS Lambda function.git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/backup-sfn/typescript/cdknpm installIf this account and Region have never been used with the AWS CDK, run npx cdk bootstrap once.CRON=$(node -e 'const d=new Date(Date.now()+30*60000);console.log(`cron(${d.getUTCMinutes()} ${d.getUTCHours()} * * ? *)`)')npx cdk deploy -c restoreTestCron="$CRON"aws backup start-backup-job, then wait for the restore test to start. The plan has no run-now call: it starts at a random time within one hour after the cron time, so plan for about two hours.aws backup describe-restore-job. Expected: a ValidationStatus of SUCCESSFUL and a message with the restored table name.npx cdk destroy.