I have a lambda function which I am using to create the DynamoDB table.
I have a requirement, wherein I need to insert some data in this table, after the table is created.
In DynamoDB, Create table is an asynchronous call. While the table is being created, it is in "CREATING" state and after that it goes into "ACTIVE" state.
The challenge is, I can't insert the data in this table, till it is not in "ACTIVE" state and I get ResourceNotFoundException exception.
Is there any way, I can insert this data in the table while it is created?
I want to complete the table creation and the data insertion in the same Lambda function call.