DynamoDB and TTL

#1

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?

#2

Hi, I think you can define your table as a resource and set TimeToLiveSpecification
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html
Is this what you need?

1 Like
#3

I think it is. Thankyou