Skip to content

Commit

Permalink
Add manual lambda functions
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Oct 25, 2024
1 parent 1f47653 commit 21fbf3b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions worker/worker_cdk_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,36 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
memory_size=256,
)

burn_asset = _lambda.Function(
self, f"{config.stage}-9c-iap-burn-asset-function",
function_name=f"{config.stage}-9c-iap-burn-asset",
runtime=_lambda.Runtime.PYTHON_3_10,
description=f"Execute BurnAsset action",
code=_lambda.AssetCode("worker/worker", exclude=exclude_list),
handler="manual.burn_asset.burn_asset",
layers=[layer],
role=role,
vpc=shared_stack.vpc,
timeout=cdk_core.Duration.seconds(300), # 5min
environment=env,
memory_size=256,
)

issue_token = _lambda.Function(
self, f"{config.stage}-9c-iap-issue-token-function",
function_name=f"{config.stage}-9c-iap-issue-token",
runtime=_lambda.Runtime.PYTHON_3_10,
description=f"Execute IssueToken action",
code=_lambda.AssetCode("worker/worker", exclude=exclude_list),
handler="manual.issue_token.issue_token",
layers=[layer],
role=role,
vpc=shared_stack.vpc,
timeout=cdk_core.Duration.seconds(300), # 5min
environment=env,
memory_size=256,
)

asset_transporter = _lambda.Function(
self, f"{config.stage}-9c-iap-assets-transfer-function",
function_name=f"{config.stage}-9c-iap-transfer-assets",
Expand Down

0 comments on commit 21fbf3b

Please sign in to comment.