Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions samtranslator/policy_templates_data/policy_templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,25 @@
}
]
}
},
"IAMListUserAccessKeyPolicy": {
"Description": "Gives permissions to list users and their access keys",
"Parameters": {

},
"Definition": {
"Statement": [
{
"Effect": "Allow",
"Action": [
"iam:ListAccessKeys",
"iam:GetAccessKeyLastUsed",
"iam:ListUsers"
],
"Resource": "*"
}
]
}
}
}
}
2 changes: 2 additions & 0 deletions tests/translator/input/all_policy_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,5 @@ Resources:
PinpointApplicationId: id

- RekognitionDetectOnlyPolicy: {}

- IAMListUserAccessKeyPolicy: {}
18 changes: 17 additions & 1 deletion tests/translator/output/all_policy_templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,23 @@
}
]
}
}
},
{
"PolicyName": "KitchenSinkFunctionRolePolicy40",
"PolicyDocument": {
"Statement": [
{
"Action": [
"iam:ListAccessKeys",
"iam:GetAccessKeyLastUsed",
"iam:ListUsers"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
}
],
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
Expand Down
18 changes: 17 additions & 1 deletion tests/translator/output/aws-cn/all_policy_templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,23 @@
}
]
}
}
},
{
"PolicyName": "KitchenSinkFunctionRolePolicy40",
"PolicyDocument": {
"Statement": [
{
"Action": [
"iam:ListAccessKeys",
"iam:GetAccessKeyLastUsed",
"iam:ListUsers"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
}
],
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
Expand Down
16 changes: 16 additions & 0 deletions tests/translator/output/aws-us-gov/all_policy_templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,22 @@
}
]
}
},
{
"PolicyName": "KitchenSinkFunctionRolePolicy40",
"PolicyDocument": {
"Statement": [
{
"Action": [
"iam:ListAccessKeys",
"iam:GetAccessKeyLastUsed",
"iam:ListUsers"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
}
],
"AssumeRolePolicyDocument": {
Expand Down