Skip to content

Commit 2f5c677

Browse files
authored
add iam conditions to iam policy creation (#1003)
Co-authored-by: papaya <none>
1 parent b11b158 commit 2f5c677

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/deployments/cdk/src/common/iam-assets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export class IamAssets extends cdk.Construct {
5959
effect: statement.Effect === 'Allow' ? iam.Effect.ALLOW : iam.Effect.DENY,
6060
actions: typeof statement.Action === 'string' ? [statement.Action] : statement.Action,
6161
resources: typeof statement.Resource === 'string' ? [statement.Resource] : statement.Resource,
62+
conditions: statement.Condition,
6263
}),
6364
);
6465
}

0 commit comments

Comments
 (0)