Skip to content

Commit 00a4a1b

Browse files
committed
fix: Key policy template syntax.
1 parent 1a85243 commit 00a4a1b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

templates/key-policy.yaml.tftpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ Statement:
2222
kms:EncryptionContext:aws:s3:arn:
2323
- "arn:${partition}:s3:::${bucket}"
2424
- "arn:${partition}:s3:::${bucket}/*"
25-
{% if length(principals) > 0 }
25+
{% if length(principals) > 0 ~}
2626
- Sid: Allow other resources to use the key
2727
Effect: Allow
2828
Principal:
2929
AWS:
30-
{% for principal in principals }
30+
{% for principal in principals ~}
3131
- "${principal}"
32-
%{ endfor }
32+
{% endfor ~}
3333
Action:
3434
- kms:GenerateDataKey
3535
- kms:Decrypt
36-
{% endif }
36+
{% endif ~}

0 commit comments

Comments
 (0)