Skip to content

Commit 644074b

Browse files
authored
Merge pull request #110 from Jimdo/fix-dynamodb-ttl-configuration-from-cf
Delete ttl from dynamodb table CloudFormation specification
2 parents 5ff9610 + 6380801 commit 644074b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ resources:
9797
WriteCapacityUnits: 1
9898
```
9999

100+
**Note:**
101+
DynamoDB local doesn't support TTL specification, therefore plugin will simply ignore ttl configuration from Cloudformation template.
102+
100103
## Seeding: sls dynamodb seed
101104
### Configuration
102105

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ class ServerlessDynamodbLocal {
241241
if (migration.StreamSpecification && migration.StreamSpecification.StreamViewType) {
242242
migration.StreamSpecification.StreamEnabled = true;
243243
}
244+
if (migration.TimeToLiveSpecification) {
245+
delete migration.TimeToLiveSpecification;
246+
}
244247
dynamodb.raw.createTable(migration, (err) => {
245248
if (err) {
246249
this.serverlessLog("DynamoDB - Error - ", err);

0 commit comments

Comments
 (0)