both table create and delete table on aws dynamodb can take a bit of time to occur put in sleep delay