Skip to content

Commit b53e472

Browse files
ran-isenbergRan Isenberg
andauthored
feature: define arch. (#957)
--------- Co-authored-by: Ran Isenberg <ran.isenberg@ranthebuilder.cloud>
1 parent 0b1f840 commit b53e472

File tree

3 files changed

+33
-30
lines changed

3 files changed

+33
-30
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
exclude: "^(?!helpers/)"
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
2828
# Ruff version.
29-
rev: v0.12.0
29+
rev: v0.12.1
3030
hooks:
3131
# Run the Ruff linter.
3232
- id: ruff

cdk/service/api_construct.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def _build_common_layer(self) -> PythonLayerVersion:
104104
entry=constants.COMMON_LAYER_BUILD_FOLDER,
105105
compatible_runtimes=[_lambda.Runtime.PYTHON_3_13],
106106
removal_policy=RemovalPolicy.DESTROY,
107+
description='Common layer for the service',
108+
compatible_architectures=[_lambda.Architecture.X86_64],
107109
)
108110

109111
def _add_post_lambda_integration(
@@ -141,6 +143,7 @@ def _add_post_lambda_integration(
141143
log_retention=RetentionDays.ONE_DAY,
142144
logging_format=_lambda.LoggingFormat.JSON,
143145
system_log_level_v2=_lambda.SystemLogLevel.INFO,
146+
architecture=_lambda.Architecture.X86_64,
144147
)
145148

146149
# POST /api/orders/

poetry.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)