-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
47 lines (38 loc) · 1.23 KB
/
app.py
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
42
43
44
45
46
47
#!/usr/bin/env python3
from aws_cdk import (
core,
aws_dynamodb as dynamodb
)
from data_processing_stack import DataProcessingStack, MongoDBConfiguration, AccessKeysConfiguration, ImportedAssetsConfiguration
class MockDataMiningStack(core.Stack):
def __init__(self, scope: core.Construct, id_: str, **kwargs):
super().__init__(scope, id_, **kwargs)
self.property_table = dynamodb.Table(
self,
'Property',
table_name='Property',
partition_key=dynamodb.Attribute(
name='id',
type=dynamodb.AttributeType.STRING
),
stream=dynamodb.StreamViewType.NEW_IMAGE
)
app = core.App()
mock_data_mining_stack = MockDataMiningStack(app, 'MockDataMiningStack')
data_processing_stack = DataProcessingStack(
app,
'DataProcessingStack',
mongodb_config=MongoDBConfiguration(
uri='MockUri',
max_page_size='10',
database='timeSeriesDB',
collection='properties'
),
access_keys_config=AccessKeysConfiguration(
geocoding='MockAccessKey'
),
imported_assets_config=ImportedAssetsConfiguration(
table_property=mock_data_mining_stack.property_table
)
)
app.synth()