Skip to content

Commit

Permalink
chore: align handler and fn handler name w/ crud
Browse files Browse the repository at this point in the history
Signed-off-by: heitorlessa <lessa@amazon.co.uk>
  • Loading branch information
heitorlessa committed Sep 30, 2023
1 parent ba92b7f commit e7b59b7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infrastructure/product/stream_processor_construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _build_stream_processor_lambda(self, role: iam.Role, lambda_layer: PythonLay
id=constants.STREAM_PROCESSOR_LAMBDA,
runtime=_lambda.Runtime.PYTHON_3_11,
code=_lambda.Code.from_asset(constants.BUILD_FOLDER),
handler='product.stream_processor.handlers.product_stream.process_stream',
handler='product.stream_processor.handlers.process_stream.process_stream',
environment={
constants.POWERTOOLS_SERVICE_NAME: constants.SERVICE_NAME, # for logger, tracer and metrics
constants.POWER_TOOLS_LOG_LEVEL: 'DEBUG', # for logger
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/stream_processor/test_process_stream_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import uuid

from product.stream_processor.handlers.product_stream import process_stream
from product.stream_processor.handlers.process_stream import process_stream
from tests.unit.stream_processor.data_builder import generate_dynamodb_stream_events
from tests.utils import generate_context

Expand Down

0 comments on commit e7b59b7

Please sign in to comment.