DynamoDB and TTL

Is there anyway to define the TTL attribute in the serverless config file rather than having to log in and define this setting in the web console? I have not found any documentation regarding this - am I missing something?

1 Like

Hi, I think you can define your table as a resource and set TimeToLiveSpecification
Is this what you need?


I think it is. Thankyou

I can’t currently get that to work, maybe the format of my field is worng.
Do you have an example configuration for this?