sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.19k stars 148 forks source link

TTL is missing from sst.dynamodb #290

Closed TheKnightCoder closed 3 months ago

JanStevens commented 3 months ago

You can easily do that with the transform property

transform: {
  table: {
    ttl: { attributeName: 'expiresAt', enabled: true },
  },
},
fwang commented 3 months ago

Thanks @JanStevens!

In v0.0.326, you can set ttl as a top level arg for the Dynamo component — https://ion.sst.dev/docs/component/aws/dynamo/#ttl