Skip to content

Commit a7b7306

Browse files
committed
chore(aws-cdk-testing): fix integ test case using unrestricted principal for role
This test case is flagged up by automated security tooling. There is no actual risk since this is a test stack that is only short-lived and the permissions for the role only allow consuming messages from a queue that doesn't hold any data.
1 parent 1a9c30e commit a7b7306

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/simple-app

packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/simple-app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class SimpleStack extends cdk.Stack {
1414
visibilityTimeout: cdk.Duration.seconds(300),
1515
});
1616
const role = new iam.Role(this, 'role', {
17-
assumedBy: new iam.AnyPrincipal(),
17+
assumedBy: new iam.AccountRootPrincipal(),
1818
});
1919
queue.grantConsumeMessages(role);
2020
}

0 commit comments

Comments
 (0)