Skip to content

Commit d66aa22

Browse files
committed
Listed actions individually instead of using wildcard.
1 parent 2e089a8 commit d66aa22

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

samtranslator/policy_templates_data/policy_templates.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,10 @@
12551255
{
12561256
"Action": [
12571257
"kms:Encrypt",
1258-
"kms:GenerateDataKey*"
1258+
"kms:GenerateDataKey",
1259+
"kms:GenerateDataKeyWithoutPlaintext",
1260+
"kms:GenerateDataKeyPair",
1261+
"kms:GenerateDataKeyPairWithoutPlaintext"
12591262
],
12601263
"Effect": "Allow",
12611264
"Resource": {

tests/translator/output/all_policy_templates.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,10 @@
14231423
{
14241424
"Action": [
14251425
"kms:Encrypt",
1426-
"kms:GenerateDataKey*"
1426+
"kms:GenerateDataKey",
1427+
"kms:GenerateDataKeyWithoutPlaintext",
1428+
"kms:GenerateDataKeyPair",
1429+
"kms:GenerateDataKeyPairWithoutPlaintext"
14271430
],
14281431
"Effect": "Allow",
14291432
"Resource": {

tests/translator/output/aws-cn/all_policy_templates.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,10 @@
14231423
{
14241424
"Action": [
14251425
"kms:Encrypt",
1426-
"kms:GenerateDataKey*"
1426+
"kms:GenerateDataKey",
1427+
"kms:GenerateDataKeyWithoutPlaintext",
1428+
"kms:GenerateDataKeyPair",
1429+
"kms:GenerateDataKeyPairWithoutPlaintext"
14271430
],
14281431
"Effect": "Allow",
14291432
"Resource": {

tests/translator/output/aws-us-gov/all_policy_templates.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,10 @@
14231423
{
14241424
"Action": [
14251425
"kms:Encrypt",
1426-
"kms:GenerateDataKey*"
1426+
"kms:GenerateDataKey",
1427+
"kms:GenerateDataKeyWithoutPlaintext",
1428+
"kms:GenerateDataKeyPair",
1429+
"kms:GenerateDataKeyPairWithoutPlaintext"
14271430
],
14281431
"Effect": "Allow",
14291432
"Resource": {

0 commit comments

Comments
 (0)