-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.yaml
42 lines (37 loc) · 1.19 KB
/
database.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
AWSTemplateFormatVersion: '2010-09-09'
Description: "Database"
Parameters:
DatabaseName:
Type: String
Default: "home"
Resources:
TimestreamDatabase:
Type: AWS::Timestream::Database
UpdateReplacePolicy: "Delete"
DeletionPolicy: "Delete"
Properties:
DatabaseName: !Ref DatabaseName
TimestreamTableElectricity:
Type: AWS::Timestream::Table
UpdateReplacePolicy: "Delete"
DeletionPolicy: "Delete"
Properties:
DatabaseName: !Ref DatabaseName
TableName: "electricity"
RetentionProperties:
MagneticStoreRetentionPeriodInDays: "1095"
MemoryStoreRetentionPeriodInHours: "48" # Longer period allows us to insert yesterday's consumption data
MagneticStoreWriteProperties:
EnableMagneticStoreWrites: false
TimestreamTableTempHumidity:
Type: AWS::Timestream::Table
UpdateReplacePolicy: "Delete"
DeletionPolicy: "Delete"
Properties:
DatabaseName: !Ref DatabaseName
TableName: "temp-humidity"
RetentionProperties:
MagneticStoreRetentionPeriodInDays: "1095"
MemoryStoreRetentionPeriodInHours: "24"
MagneticStoreWriteProperties:
EnableMagneticStoreWrites: true