For the most part, the information being persisted in DynamoDB isn't useful for anything other than simulating a stack in memory.
DynamoDB supports TTL for cleaning up old data. In our case, we can be fairly confident that any data that is over 2 hours old is stale due to this exceeding the connection duration limit imposed by AWS
Changes
[ ] Add TTL option to createInstance which takes the number of minutes(?) to be appended to the creation time for TTL value (default 180)
[ ] Add TTL values to datamodels
[ ] Update serverless example to use TTL
[ ] Update terraform example to use TTL
[ ] Update example project serverless config to use TTL
About
For the most part, the information being persisted in DynamoDB isn't useful for anything other than simulating a stack in memory.
DynamoDB supports TTL for cleaning up old data. In our case, we can be fairly confident that any data that is over 2 hours old is stale due to this exceeding the connection duration limit imposed by AWS
Changes
createInstance
which takes the number of minutes(?) to be appended to the creation time for TTL value (default 180)