Commit 7635c21
authored
fix: add KMS policy statement only if key given (#1258)
## Description
As we assumed that the KMS key is always present (why isn't it?), the
policy is created without any resource in case we don't have any key.
This PR introduces a separate policy created only if the key is present.
Closes #12571 parent c711b80 commit 7635c21
2 files changed
+22
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
35 | 54 | | |
36 | | - | |
37 | | - | |
38 | 55 | | |
39 | 56 | | |
40 | 57 | | |
| |||
44 | 61 | | |
45 | 62 | | |
46 | 63 | | |
| 64 | + | |
47 | 65 | | |
| 66 | + | |
48 | 67 | | |
49 | 68 | | |
50 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments