File tree Expand file tree Collapse file tree 5 files changed +110
-0
lines changed
samtranslator/policy_templates_data Expand file tree Collapse file tree 5 files changed +110
-0
lines changed Original file line number Diff line number Diff line change 1275
1275
}
1276
1276
}
1277
1277
},
1278
+ "KMSEncryptPolicy_v2" : {
1279
+ "Definition" : {
1280
+ "Statement" : [
1281
+ {
1282
+ "Action" : [
1283
+ " kms:Encrypt" ,
1284
+ " kms:GenerateDataKey" ,
1285
+ " kms:GenerateDataKeyWithoutPlaintext" ,
1286
+ " kms:GenerateDataKeyPair" ,
1287
+ " kms:GenerateDataKeyPairWithoutPlaintext"
1288
+ ],
1289
+ "Effect" : " Allow" ,
1290
+ "Resource" : {
1291
+ "Fn::Sub" : [
1292
+ " arn:${AWS::Partition}:kms:${AWS::Region}:${AWS::AccountId}:key/${keyId}" ,
1293
+ {
1294
+ "keyId" : {
1295
+ "Ref" : " KeyId"
1296
+ }
1297
+ }
1298
+ ]
1299
+ }
1300
+ }
1301
+ ]
1302
+ },
1303
+ "Description" : " Gives permission to encrypt with KMS Key" ,
1304
+ "Parameters" : {
1305
+ "KeyId" : {
1306
+ "Description" : " ID of the KMS Key"
1307
+ }
1308
+ }
1309
+ },
1278
1310
"KinesisCrudPolicy" : {
1279
1311
"Definition" : {
1280
1312
"Statement" : [
Original file line number Diff line number Diff line change @@ -187,3 +187,6 @@ Resources:
187
187
188
188
- StepFunctionsCallbackPolicy :
189
189
StateMachineName : name
190
+
191
+ - KMSEncryptPolicy_v2 :
192
+ KeyId : keyId
Original file line number Diff line number Diff line change 1726
1726
]
1727
1727
},
1728
1728
"PolicyName" : " KitchenSinkFunctionRolePolicy63"
1729
+ },
1730
+ {
1731
+ "PolicyDocument" : {
1732
+ "Statement" : [
1733
+ {
1734
+ "Action" : [
1735
+ " kms:Encrypt" ,
1736
+ " kms:GenerateDataKey" ,
1737
+ " kms:GenerateDataKeyWithoutPlaintext" ,
1738
+ " kms:GenerateDataKeyPair" ,
1739
+ " kms:GenerateDataKeyPairWithoutPlaintext"
1740
+ ],
1741
+ "Effect" : " Allow" ,
1742
+ "Resource" : {
1743
+ "Fn::Sub" : [
1744
+ " arn:${AWS::Partition}:kms:${AWS::Region}:${AWS::AccountId}:key/${keyId}" ,
1745
+ {
1746
+ "keyId" : " keyId"
1747
+ }
1748
+ ]
1749
+ }
1750
+ }
1751
+ ]
1752
+ },
1753
+ "PolicyName" : " KitchenSinkFunctionRolePolicy64"
1729
1754
}
1730
1755
],
1731
1756
"Tags" : [
Original file line number Diff line number Diff line change 1726
1726
]
1727
1727
},
1728
1728
"PolicyName" : " KitchenSinkFunctionRolePolicy63"
1729
+ },
1730
+ {
1731
+ "PolicyDocument" : {
1732
+ "Statement" : [
1733
+ {
1734
+ "Action" : [
1735
+ " kms:Encrypt" ,
1736
+ " kms:GenerateDataKey" ,
1737
+ " kms:GenerateDataKeyWithoutPlaintext" ,
1738
+ " kms:GenerateDataKeyPair" ,
1739
+ " kms:GenerateDataKeyPairWithoutPlaintext"
1740
+ ],
1741
+ "Effect" : " Allow" ,
1742
+ "Resource" : {
1743
+ "Fn::Sub" : [
1744
+ " arn:${AWS::Partition}:kms:${AWS::Region}:${AWS::AccountId}:key/${keyId}" ,
1745
+ {
1746
+ "keyId" : " keyId"
1747
+ }
1748
+ ]
1749
+ }
1750
+ }
1751
+ ]
1752
+ },
1753
+ "PolicyName" : " KitchenSinkFunctionRolePolicy64"
1729
1754
}
1730
1755
],
1731
1756
"Tags" : [
Original file line number Diff line number Diff line change 1726
1726
]
1727
1727
},
1728
1728
"PolicyName" : " KitchenSinkFunctionRolePolicy63"
1729
+ },
1730
+ {
1731
+ "PolicyDocument" : {
1732
+ "Statement" : [
1733
+ {
1734
+ "Action" : [
1735
+ " kms:Encrypt" ,
1736
+ " kms:GenerateDataKey" ,
1737
+ " kms:GenerateDataKeyWithoutPlaintext" ,
1738
+ " kms:GenerateDataKeyPair" ,
1739
+ " kms:GenerateDataKeyPairWithoutPlaintext"
1740
+ ],
1741
+ "Effect" : " Allow" ,
1742
+ "Resource" : {
1743
+ "Fn::Sub" : [
1744
+ " arn:${AWS::Partition}:kms:${AWS::Region}:${AWS::AccountId}:key/${keyId}" ,
1745
+ {
1746
+ "keyId" : " keyId"
1747
+ }
1748
+ ]
1749
+ }
1750
+ }
1751
+ ]
1752
+ },
1753
+ "PolicyName" : " KitchenSinkFunctionRolePolicy64"
1729
1754
}
1730
1755
],
1731
1756
"Tags" : [
You can’t perform that action at this time.
0 commit comments