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
17 changes: 17 additions & 0 deletions samtranslator/policy_templates_data/policy_templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -2360,6 +2360,23 @@
}
]
}
},
"StepFunctionsSendTaskStatusPolicy": {
"Description": "Gives permission to send task status to a Step Function activity",
"Parameters": {},
"Definition": {
"Statement": [
{
"Effect": "Allow",
"Action": [
"states:SendTaskFailure",
"states:SendTaskHeartbeat",
"states:SendTaskSuccess"
],
"Resource": "*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be scoped properly instead of '*'?

}
]
}
}
}
}
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 @@ -174,3 +174,5 @@ Resources:

- Route53ChangeResourceRecordSetsPolicy:
HostedZoneId: test

- StepFunctionsSendTaskStatusPolicy: {}
16 changes: 16 additions & 0 deletions tests/translator/output/all_policy_templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,22 @@
}
]
}
},
{
"PolicyName": "KitchenSinkFunctionRolePolicy60",
"PolicyDocument": {
"Statement": [
{
"Action": [
"states:SendTaskFailure",
"states:SendTaskHeartbeat",
"states:SendTaskSuccess"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
}
],
"Tags": [
Expand Down
16 changes: 16 additions & 0 deletions tests/translator/output/aws-cn/all_policy_templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,22 @@
}
]
}
},
{
"PolicyName": "KitchenSinkFunctionRolePolicy60",
"PolicyDocument": {
"Statement": [
{
"Action": [
"states:SendTaskFailure",
"states:SendTaskHeartbeat",
"states:SendTaskSuccess"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
}
],
"Tags": [
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 @@ -1610,6 +1610,22 @@
}
]
}
},
{
"PolicyName": "KitchenSinkFunctionRolePolicy60",
"PolicyDocument": {
"Statement": [
{
"Action": [
"states:SendTaskFailure",
"states:SendTaskHeartbeat",
"states:SendTaskSuccess"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
}
],
"Tags": [
Expand Down