Skip to content

Commit

Permalink
add comment about IAM action being case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
jogold committed Oct 8, 2021
1 parent a5f4087 commit 5bc8e97
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export class CallAwsService extends sfn.TaskStateBase {
this.taskPolicies = [
new iam.PolicyStatement({
resources: props.iamResources,
// The prefix and the action name are case insensitive
// https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_action.html
actions: [props.iamAction ?? `${props.service}:${props.action}`],
}),
];
Expand Down

0 comments on commit 5bc8e97

Please sign in to comment.