Skip to content

Commit 51f9d6f

Browse files
committedMar 4, 2025
Add comment about wildcard
1 parent 8092d55 commit 51f9d6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎packages/@aws-cdk/aws-scheduler-targets-alpha/lib/inspector-start-assessment-run.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export class InspectorStartAssessmentRun extends ScheduleTargetBase implements I
1717
protected addTargetActionToRole(role: IRole): void {
1818
role.addToPrincipalPolicy(new PolicyStatement({
1919
actions: ['inspector:StartAssessmentRun'],
20+
// The wildcard is intentional here as Amazon Inspector does not support specifying a resource ARN in the Resource element of an IAM policy statement.
21+
// See https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazoninspector.html#amazoninspector-resources-for-iam-policies.
2022
resources: ['*'],
2123
}));
2224
}

0 commit comments

Comments
 (0)
Failed to load comments.