github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/avd_docs/aws/ecr/AVD-AWS-0033/CloudFormation.md (about) 1 2 Use customer managed keys 3 4 ```yaml--- 5 Resources: 6 GoodExample: 7 Type: AWS::ECR::Repository 8 Properties: 9 RepositoryName: "test-repository" 10 ImageTagImmutability: IMMUTABLE 11 ImageScanningConfiguration: 12 ScanOnPush: false 13 EncryptionConfiguration: 14 EncryptionType: KMS 15 KmsKey: "alias/ecr-key" 16 17 ``` 18 19