Skip to content

Commit

Permalink
Add missing lambda settings
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Dec 4, 2023
1 parent 7a534f4 commit ac4fa5a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion worker/worker_cdk_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
runtime=_lambda.Runtime.PYTHON_3_10,
code=_lambda.AssetCode("worker/worker", exclude=exclude_list),
handler="status_monitor.handle",
environment=env,
layers=[layer],
role=role,
vpc=shared_stack.vpc,
Expand All @@ -172,7 +173,14 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
runtime=_lambda.Runtime.PYTHON_3_10,
code=_lambda.AssetCode("worker/worker", exclude=exclude_list),
handler="voucher.handle",

layers=[layer],
role=role,
vpc=shared_stack.vpc,
timeout=cdk_core.Duration.seconds(30),
memory_size=512,
events=[
_evt_src.SqsEventSource(shared_stack.voucher_q)
],
)

# Golden dust by NCG handler
Expand Down

0 comments on commit ac4fa5a

Please sign in to comment.