Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
fix: Use a writeable cache directory
Browse files Browse the repository at this point in the history
Temporary workaround - see
<aws/aws-cdk#21867 (comment)>.
  • Loading branch information
l0b0 committed Sep 6, 2022
1 parent 4107675 commit 4995878
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infrastructure/constructs/lambda_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ def __init__(self, scope: constructs.Construct, stack_id: str, *, env_name: str)
self,
f"{env_name}-botocore-lambda-layer",
entry="infrastructure/constructs/lambda_layers/botocore",
bundling=aws_lambda_python_alpha.BundlingOptions(
# See https://github.com/aws/aws-cdk/issues/21867#issuecomment-1234233411
environment={"POETRY_VIRTUALENVS_IN_PROJECT": "true"}
),
compatible_runtimes=[PYTHON_RUNTIME],
description="botocore library",
)

0 comments on commit 4995878

Please sign in to comment.