Skip to content

Commit

Permalink
Remove compute Lambda function code attribute
Browse files Browse the repository at this point in the history
AppRegistry attribute group used this attribute. Attribute group was removed, so this no longer needed.
  • Loading branch information
alexpulver committed Feb 16, 2025
1 parent 6bd8e1c commit 9074f42
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions service/api/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,12 @@ def __init__(
self.lambda_function = lambda_python_alpha.PythonFunction(
self,
"LambdaFunction",
entry=str(pathlib.Path(__file__).parent.joinpath("app").resolve()),
environment={"DYNAMODB_TABLE_NAME": dynamodb_table_name},
handler="lambda_handler",
index="main.py",
reserved_concurrent_executions=lambda_reserved_concurrency,
runtime=lambda_.Runtime(
f"python{constants.PYTHON_VERSION}", family=lambda_.RuntimeFamily.PYTHON
),
environment={"DYNAMODB_TABLE_NAME": dynamodb_table_name},
reserved_concurrent_executions=lambda_reserved_concurrency,
entry=str(pathlib.Path(__file__).parent.joinpath("app").resolve()),
index="main.py",
handler="lambda_handler",
)
cfn_lambda_function = cast(
lambda_.CfnFunction, self.lambda_function.node.default_child
)
code = cast(lambda_.CfnFunction.CodeProperty, cfn_lambda_function.code)
self.lambda_function_code = f"s3://{code.s3_bucket}/{code.s3_key}"

0 comments on commit 9074f42

Please sign in to comment.