Skip to content

Commit c4cb18f

Browse files
fix name of inspector watcher role (#1094)
Signed-off-by: Swapnanil Gupta <swpnlg@amazon.com>
1 parent 19efe89 commit c4cb18f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/inspector-watcher-stack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export class InspectorWatcherStack extends cdk.Stack {
1111

1212
const accountId = ssm.StringParameter.valueForStringParameter(this, '/finch/account/inspector-watcher');
1313

14-
new iam.Role(this, 'InspectorWatcherReadonly', {
15-
roleName: 'InspectorWatcherReadonly',
14+
new iam.Role(this, 'InspectorWatcherReadOnly', {
15+
roleName: 'InspectorWatcherReadOnly',
1616
assumedBy: new iam.ArnPrincipal(`arn:aws:iam::${accountId}:root`).withConditions({
1717
ArnLike: {
1818
'aws:PrincipalArn': `arn:aws:iam::${accountId}:role/InspectorWatcherStack*`,

test/inspector-watcher-stack.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('InspectorWatcherStack', () => {
1515
template.resourceCountIs('AWS::IAM::Role', 1);
1616
template.hasResource('AWS::IAM::Role', {
1717
Properties: {
18-
RoleName: 'InspectorWatcherReadonly',
18+
RoleName: 'InspectorWatcherReadOnly',
1919
AssumeRolePolicyDocument: {
2020
Statement: [
2121
Match.objectLike({

0 commit comments

Comments
 (0)