Cloudformation-coverage-roadmap: AWS::ECR::Repository-ImageScanningConfiguration

Created on 29 Oct 2019  路  13Comments  路  Source: aws-cloudformation/cloudformation-coverage-roadmap

CloudFormation requires the equivalent setting to:
aws ecr create-repository --repository-name name --image-scanning-configuration scanOnPush=true
to enable the automatic image scanning on ECR.

https://docs.aws.amazon.com/en_pv/AmazonECR/latest/userguide/image-scanning.html

ECR is Compute and the expected behaviour is to make the scanOnPush settings configurable through CloudFormation as well. I think what needs to be done is clear.

compute

Most helpful comment

Why isn't CloudFormation a first class citizen like the API when new features are released? Sigh.

All 13 comments

Any ETA on this?

Why isn't CloudFormation a first class citizen like the API when new features are released? Sigh.

Why isn't CloudFormation a first class citizen like the API when new features are released? Sigh.

Yeah, I have asked myself this many times, especially, when it is not something that seems to be very complex, since it is a 1:1 match to the corresponding fields in the API. I've seen several of those cases, and they still take months to be in Cloudformation.
Often terraform is faster than CloudFormation. How can that be?

I'd like an ETA on this as well. From a feature perspective if it isn't available via CFN it isn't worth us using unless we go the custom resource route, which is a pain.

@1davidmichael I agree, custom resources are for something that is truly custom work, not for adding base-line support of feature that AWS has added.

I have reached out to our TAM team to ask about this specific feature, I would ask that others do the same.

Please make this happen faster....

I hear you @JonLittleIT :) hopefully we'll have some good news real soon now ...

Looks like this is available now: https://github.com/aws/containers-roadmap/issues/552#issuecomment-676292818

ImageScanningConfiguration works but I get a validation error in my template on AWS Console:

        "myRepository": {
            "Type": "AWS::ECR::Repository",
            "Properties": {
                "RepositoryName": "myRepoName",
                "ImageScanningConfiguration": {
                    "scanOnPush": "true"
                }
            }
        }

Here is the error message:

Stack operations on resource myRepository would fail starting from 03/01/2021 as the template has invalid properties. Please refer to the resource documentation to fix the template. Properties validation failed for resource myRepository with message: #/ImageScanningConfiguration: extraneous key [scanOnPush] is not permitted

Is this a bug?
Will my template stop working from 03/01/2021 as the error message says?

Yes "ScanOnPush" did it. So should the example in the docs be corrected?
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html#aws-resource-ecr-repository--examples

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnPreston picture JohnPreston  路  3Comments

san-san picture san-san  路  3Comments

rjpereira picture rjpereira  路  4Comments

baxang picture baxang  路  3Comments

mweagle picture mweagle  路  3Comments