Skip to content

Commit e2b9418

Browse files
committed
Delete ttl from dynamodb table CloudFormation specification
1 parent cf46a80 commit e2b9418

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ class ServerlessDynamodbLocal {
200200
if (migration.StreamSpecification && migration.StreamSpecification.StreamViewType) {
201201
migration.StreamSpecification.StreamEnabled = true;
202202
}
203+
if (migration.TimeToLiveSpecification) {
204+
delete migration.TimeToLiveSpecification;
205+
}
203206
dynamodb.raw.createTable(migration, (err) => {
204207
if (err) {
205208
this.serverlessLog("DynamoDB - Error - ", err);

0 commit comments

Comments
 (0)