- Mais recentes
- Mais votos
- Mais comentários
You can still enable TTL on created_on_date
providing that attribute is an epoch time in seconds.
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/howitworks-ttl.html
If its not and epoch timestamp in seconds then unfortunately you do not have any other method to approach this that will not involve reading all the items in the table and then either adding TTL or directly deleting.
I would consider backfilling a TTL attribute for all items in the table, which you can compute based on created_on_date
. This will ensure you will not run into this situation again. Depending on the amount of data in your table you can either run a script on Lambda/EC2/Local etc... to perform this. For large tables which scale beyond several GB's then you may need to use something such as EMR - this is documented in two blogs:
Conteúdo relevante
- AWS OFICIALAtualizada há 9 meses
- AWS OFICIALAtualizada há 2 anos