Skip to content

Commit 7588b51

Browse files
authored
feat(bootstrap): ECR ScanOnPush is now enabled by default (#17994)
[`AWS::ECR::Repository.ImageScanningConfiguration`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html#cfn-ecr-repository-imagescanningconfiguration) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 73f0f0e commit 7588b51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ Resources:
202202
ContainerAssetsRepository:
203203
Type: AWS::ECR::Repository
204204
Properties:
205+
ImageScanningConfiguration:
206+
ScanOnPush: true
205207
RepositoryName:
206208
Fn::If:
207209
- HasCustomContainerAssetsRepositoryName
@@ -491,7 +493,7 @@ Resources:
491493
Type: String
492494
Name:
493495
Fn::Sub: '/cdk-bootstrap/${Qualifier}/version'
494-
Value: '9'
496+
Value: '10'
495497
Outputs:
496498
BucketName:
497499
Description: The name of the S3 bucket owned by the CDK toolkit stack

0 commit comments

Comments
 (0)