Skip to content

Commit e1b4170

Browse files
Merge pull request #2 from reloc8/minor/update-dependencies
Update dependencies
2 parents 82893b1 + 2b38211 commit e1b4170

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def __init__(self, scope: core.Construct, id_: str, **kwargs):
3333
'DataProcessingStack',
3434
mongodb_config=MongoDBConfiguration(
3535
uri='MockUri',
36-
max_page_size='10'
36+
max_page_size='10',
37+
database='timeSeriesDB',
38+
collection='properties'
3739
),
3840
access_keys_config=AccessKeysConfiguration(
3941
geocoding='MockAccessKey'

data_processing_stack/__init__.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
class MongoDBConfiguration:
2222

2323
uri: AnyStr
24+
database: AnyStr
25+
collection: AnyStr
2426
max_page_size: AnyStr
2527

2628

@@ -67,7 +69,7 @@ def __init__(self, scope: core.Construct, id_: str,
6769
lambda_geocode_property = lambda_.Function(
6870
self,
6971
'GeocodeProperty',
70-
code=lambda_.AssetCode('stack/lambda/geocode_property/1.0.1/python/geocode_property'),
72+
code=lambda_.AssetCode('stack/lambda/geocode_property/1.1.0/python/geocode_property'),
7173
timeout=core.Duration.seconds(15),
7274
description='',
7375
function_name='GeocodeProperty',
@@ -83,7 +85,7 @@ def __init__(self, scope: core.Construct, id_: str,
8385
lambda_fetch_properties = lambda_.Function(
8486
self,
8587
'FetchProperties',
86-
code=lambda_.AssetCode('stack/lambda/fetch_properties/1.0.1/python/fetch_properties'),
88+
code=lambda_.AssetCode('stack/lambda/fetch_properties/1.1.0/python/fetch_properties'),
8789
timeout=core.Duration.seconds(10),
8890
description='',
8991
function_name='FetchProperties',
@@ -110,7 +112,7 @@ def __init__(self, scope: core.Construct, id_: str,
110112
layer_geocode_property = lambda_.LayerVersion(
111113
self,
112114
'GeocodePropertyLibs',
113-
code=lambda_.Code.from_asset('stack/lambda/geocode_property/1.0.1/'),
115+
code=lambda_.Code.from_asset('stack/lambda/geocode_property/1.1.0/'),
114116
description='',
115117
layer_version_name='GeocodePropertyLibs',
116118
compatible_runtimes=[DEFAULT_LAMBDA_RUNTIME]
@@ -119,7 +121,7 @@ def __init__(self, scope: core.Construct, id_: str,
119121
layer_fetch_properties = lambda_.LayerVersion(
120122
self,
121123
'FetchPropertiesLibs',
122-
code=lambda_.Code.from_asset('stack/lambda/fetch_properties/1.0.1/'),
124+
code=lambda_.Code.from_asset('stack/lambda/fetch_properties/1.1.0/'),
123125
description='',
124126
layer_version_name='FetchPropertiesLibs',
125127
compatible_runtimes=[DEFAULT_LAMBDA_RUNTIME]
@@ -181,10 +183,14 @@ def __init__(self, scope: core.Construct, id_: str,
181183
# ENVIRONMENT VARIABLES
182184

183185
lambda_geocode_property.add_environment(key='MONGODB_URI', value=mongodb_config.uri)
186+
lambda_geocode_property.add_environment(key='MONGODB_DATABASE', value=mongodb_config.database)
187+
lambda_geocode_property.add_environment(key='MONGODB_COLLECTION', value=mongodb_config.collection)
184188
lambda_geocode_property.add_environment(
185189
key='API_ACCESS_TOKEN_GEOCODING', value=access_keys_config.geocoding
186190
)
187191
lambda_fetch_properties.add_environment(key='MONGODB_URI', value=mongodb_config.uri)
192+
lambda_fetch_properties.add_environment(key='MONGODB_DATABASE', value=mongodb_config.database)
193+
lambda_fetch_properties.add_environment(key='MONGODB_COLLECTION', value=mongodb_config.collection)
188194
lambda_fetch_properties.add_environment(key='MONGODB_MAX_PAGE_SIZE', value=mongodb_config.max_page_size)
189195

190196
# EXPOSED ENTITIES

data_processing_stack/dependencies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ class Dependency:
3434

3535
DEPENDENCIES = [
3636
Dependency(project_name='lambda-dispatch-stream', package_name='dispatch_stream', release_version='1.0.0'),
37-
Dependency(project_name='lambda-geocode-property', package_name='geocode_property', release_version='1.0.1'),
38-
Dependency(project_name='lambda-fetch-properties', package_name='fetch_properties', release_version='1.0.1')
37+
Dependency(project_name='lambda-geocode-property', package_name='geocode_property', release_version='1.1.0'),
38+
Dependency(project_name='lambda-fetch-properties', package_name='fetch_properties', release_version='1.1.0')
3939
]

0 commit comments

Comments
 (0)