Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ecr/lib/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export class Repository extends RepositoryBase {
repositoryPolicyText: Lazy.any({ produce: () => this.policyDocument }),
lifecyclePolicy: Lazy.any({ produce: () => this.renderLifecyclePolicy() }),
imageScanningConfiguration: !props.imageScanOnPush ? undefined : {
scanOnPush: true,
ScanOnPush: true,
},
});

Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-ecr/test/integ.imagescan.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Type": "AWS::ECR::Repository",
"Properties": {
"ImageScanningConfiguration": {
"scanOnPush": true
"ScanOnPush": true
}
},
"UpdateReplacePolicy": "Delete",
Expand Down Expand Up @@ -87,4 +87,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ecr/test/test.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export = {
// THEN
expect(stack).to(haveResource('AWS::ECR::Repository', {
ImageScanningConfiguration: {
scanOnPush: true,
ScanOnPush: true,
},
}));
test.done();
Expand Down