Commit 5bb1a36
Feat: encrypt kinesis by default (#888)
* feat: create kms keys for all other regions in log account, provided with new output variable in phase 0
* refactor: reuse create default s3 key, add policy for aws services
* chore: fix typo in default kms key output type
* feat: retrieve appropriate kms keys for sns in phase 2 based on account and region
* fix: change condition checks to be against account ID and not key
* fix: create topics with encryption keys for management & logs accounts
* feat: add policy for sns to installer cmk and reuse it to encrypt main machine state machine sns topic
* fix: add kms abilities to lambda and cloud watch as well to allow topics communication
* refactor: retrieve account keys from config object instead of hardcoded
* feat: add kms key and encrypt sns topic for main security account region if add sns topic is set
* refactor: extra default key creation and output to a function for code clean up
* refactor: extract logic of retrieving default key arn to its own function for code clean up
* feat: add default kms keys to other regions in security account and reuse account bucket for main region
* feat: allow macie to leverage the default keys created in other regions of security account
* fix: reference to accountstack region and not global region variable
* refactor: remove uneeded region function param for try find default key arn
* chore: lint fix
* chore: prettier fix
* tests: spec entries for new phases introduced for kms keys
* feat: leverage bucket kms keys to encrypt kinesis delivery stream & log stream
* feat: add encryption configs to extended s3 destination of firehose
* fix: remove uneeded configuration from firehose
* chore: prettier fix
* fixed bracket to dot notation
Co-authored-by: hickeydh-aws <hickeydh@amazon.com>1 parent 127f1ca commit 5bb1a36
3 files changed
+50
-3
lines changedLines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
83 | 113 | | |
84 | 114 | | |
85 | 115 | | |
| |||
89 | 119 | | |
90 | 120 | | |
91 | 121 | | |
| 122 | + | |
| 123 | + | |
92 | 124 | | |
93 | 125 | | |
94 | 126 | | |
| |||
103 | 135 | | |
104 | 136 | | |
105 | 137 | | |
| 138 | + | |
| 139 | + | |
106 | 140 | | |
107 | 141 | | |
108 | 142 | | |
| |||
116 | 150 | | |
117 | 151 | | |
118 | 152 | | |
| 153 | + | |
| 154 | + | |
119 | 155 | | |
120 | 156 | | |
121 | 157 | | |
| |||
124 | 160 | | |
125 | 161 | | |
126 | 162 | | |
127 | | - | |
| 163 | + | |
| 164 | + | |
128 | 165 | | |
129 | 166 | | |
130 | 167 | | |
| |||
186 | 223 | | |
187 | 224 | | |
188 | 225 | | |
| 226 | + | |
189 | 227 | | |
190 | 228 | | |
191 | 229 | | |
| |||
203 | 241 | | |
204 | 242 | | |
205 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
206 | 249 | | |
207 | 250 | | |
208 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | | - | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
0 commit comments