File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -173,8 +173,25 @@ Resources:
173
173
- Effect : Allow
174
174
Principal :
175
175
AWS : !Sub "arn:aws:iam::${AWS::AccountId}:root"
176
- Action : " kms:*"
176
+ Action : kms:*
177
+ Resource : " *"
178
+ - Effect : Allow
179
+ Principal :
180
+ AWS :
181
+ # These are hard coded, which means this template will fail to bootstrap.
182
+ # To bootstrap, remove this allow block, and then put it back in subsequent deployment
183
+ - !Sub " arn:aws:iam::${AWS::AccountId}:role/GitHub-CI-${ProjectName}-Role-${AWS::Region}"
184
+ - !Sub " arn:aws:iam::${AWS::AccountId}:role/ToolsDevelopment"
185
+ Action :
186
+ - kms:Encrypt
187
+ - kms:Decrypt
177
188
Resource : " *"
189
+ Condition :
190
+ StringEquals :
191
+ kms:EncryptionContext:type :
192
+ - branch:MUTATION_COMMITMENT
193
+ - branch:MUTATION_INDEX
194
+
178
195
EccP256 :
179
196
Type : " AWS::KMS::Key"
180
197
Properties :
You can’t perform that action at this time.
0 commit comments