Skip to content

Commit

Permalink
Support passing in a nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach authored Apr 9, 2024
1 parent 79742e8 commit 5fc937a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cdk_cloudfront_update/constructs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def __init__(
distribution_arn: str,
behavior_config: Optional[Dict] = None,
origin_config: Optional[Dict] = None,
nonce: str = '',
lambda_execution_policy_statements: Sequence[iam.PolicyStatement] = [],
**kwargs,
) -> None:
Expand Down Expand Up @@ -89,6 +90,7 @@ def __init__(
properties={
"Id": distribution_id,
"FunctionVersion": cf_update_lambda.current_version.version,
"Nonce": nonce,
"PolicyStatementHash": sha256(
b"\n".join(
[
Expand Down

0 comments on commit 5fc937a

Please sign in to comment.