Skip to content

Commit

Permalink
feat(infra): support point in time recovery of dynamodb databases
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Aug 5, 2020
1 parent 05aefcf commit dce4420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/_infra/src/api.key.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class ApiKeyTableStack extends cdk.Stack {
tableName: Const.ApiKey.TableName,
billingMode: dynamoDb.BillingMode.PAY_PER_REQUEST,
partitionKey: { name: 'id', type: dynamoDb.AttributeType.STRING },
pointInTimeRecovery: true,
});
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/_infra/src/serve/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class TileMetadataTable extends cdk.Construct {
tableName: Const.TileMetadata.TableName,
billingMode: dynamoDb.BillingMode.PAY_PER_REQUEST,
partitionKey: { name: 'id', type: dynamoDb.AttributeType.STRING },
pointInTimeRecovery: true,
});

new cdk.CfnOutput(this, 'TileMetadataTable', { value: this.table.tableArn });
Expand Down

0 comments on commit dce4420

Please sign in to comment.