Skip to content
Advertisement

Wait for complete deletion of a DynamoDB table using boto3

I need to delete a dynamodb table, and wait until it is completely removed. How can I check this?
boto3 api expose a method get_waiter to wait for certain events, but it is not well documented. Can I use it for this purpose? Which would be the event name, or maybe handle a ResourceNotFoundException

JavaScript

Advertisement

Answer

After delete_table API, call table_not_exists waiter. This waits until the specified table returns 404.

JavaScript

For create_table API, call table_exists waiter. This waits until the specified table gets active.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement