aws-ecr: support create ECR repository with scanOnPush enabled #4979
Labels
@aws-cdk/aws-ecr
Related to Amazon Elastic Container Registry
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
The
scanOnPush
is not supported in cloudformation yet. We probably can usecustom-resources
construct lib to enable it when creating the ECR repository.Use Case
It's very helpful if aws-ecr can create the repository with the
scanOnPush
activated.Proposed Solution
As cloudformation has yet to support this in AWS::ECR::Repository, I was thinking mayabe we can implement it with
custom-resources
so we can eventually create the repo like thisor just
However,
custom-resources/lib/aws-custom-resource/runtime
is running on Lambda NodeJS runtime with current AWS SDK VERSION: 2.488.0 while this feature requires aws-sdk-js >= 2.557.0.I think we should enable this before the cloudformation native support but I am not sure what we can do.
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: