Reputation: 233
We have multiple consumers reading from the same stream. So everytime there is new consumer, a new table is created in DynamoDB. These consumers are not permanent. Once they are shutdown, the table becomes redundant.
1.If we keep the application name same across consumers, Data records not read properly. 2. If we use different Application Name for each consumer, the DynamoDB is flooded with tables.
Is there a solution to handle this case?
Upvotes: 1
Views: 467
Reputation: 3629
Haven't tried this myself, but probably you can enter a CloudWatch alarm/trigger for "DELETE DYNAMODB TABLE IF IDLE FOR 24H" or something like that.
It is a known practice for EC2 Instances, so maybe applies to DynamoDB as well. See: Use Amazon CloudWatch to Detect and Shut Down Unused Amazon EC2 Instances
Upvotes: 2