How to Detect the Completion of AWS DynamoDB Table Restore Automatically?

0

I'm dealing with a scenario where restoring an AWS DynamoDB table takes a considerable amount of time and I'm seeking an automated method to detect when the table has successfully transitioned to the ‘Active’ state post-restore.

For instance, suppose I initiate a DynamoDB restore by invoking an AWS Lambda function from Step Functions. How might I code the Step Functios workflow to wait for the restore to complete before proceeding with the next steps in the workflow?

Is there a recommended pattern or best practice to efficiently detect the completion of a DynamoDB table restore, such as utilizing EventBridge, SNS, or any other AWS service?

1 réponse
1
Réponse acceptée

Is there a recommended pattern or best practice to efficiently detect the completion of a DynamoDB table restore, such as utilizing EventBridge, SNS, or any other AWS service?

You can use either User Notification or EventBridge rule to detect restore completions from a backup vault.

How might I code the Step Functios workflow to wait for the restore to complete before proceeding with the next steps in the workflow?

You can create an activity state after the restore invocation state, so that your workflows pauses until a signal is send to the activity.

You also create an activity worker with Lambda function, which is invoked by EventBridge or SNS when the backup restore completes. When your activity worker is invoked, it will send signal to the activity and resume your workflow.

profile picture
HS
répondu il y a 7 mois
profile pictureAWS
EXPERT
vérifié il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions