Skip to content

Commit 0c2bffd

Browse files
committed
Move cdk into subdir
1 parent 7f4caeb commit 0c2bffd

File tree

11 files changed

+4
-3
lines changed

11 files changed

+4
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ __pycache__
2222

2323
volume/
2424
.idea
25-
node_modules

cdk/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
cdk.out
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
7474
for function_info in functions_and_roles:
7575

7676
function_name, policy_file_path, role_name, handler_path = function_info
77-
policy_json = self.read_policy_file(f"./{policy_file_path}")
77+
policy_json = self.read_policy_file(f"../{policy_file_path}")
7878
policy_document = iam.PolicyDocument.from_json(policy_json)
7979

8080
policy = iam.ManagedPolicy(
@@ -101,7 +101,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
101101
function_name=function_name,
102102
runtime=_lambda.Runtime.PYTHON_3_11,
103103
handler="handler.lambda_handler",
104-
code=_lambda.Code.from_asset(handler_path),
104+
code=_lambda.Code.from_asset(f"../{handler_path}"),
105105
role=role,
106106
timeout=aws_cdk.Duration.seconds(30),
107107
)
File renamed without changes.

0 commit comments

Comments
 (0)