Giter Club home page Giter Club logo

aws-cloudformation-resource-providers-ecr's Introduction

aws-cloudformation-resource-providers-ecr

The CloudFormation Resource Provider Package For Amazon ECR

License

This library is licensed under the Apache 2.0 License.

aws-cloudformation-resource-providers-ecr's People

Contributors

amrith-aa-aws avatar apurvmahajan avatar bradg-aws avatar deon-yin avatar dependabot[bot] avatar jpeddicord avatar neijurli avatar smalvik-amzn avatar sungkkim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-cloudformation-resource-providers-ecr's Issues

Feature: allow passing a number to the ECR LifecyclePolicy - LifecyclePolicyText

How can I pass in a number to the Policy ? the values for "LifecyclePolicyText" is a String.
Using a "!Ref" also results in a string, which fails as it needs to be a number.

ECRImageRetentionNr:
    Description: >
      The number of ECR Images that should be retained in an ECR Repository.
      Default is 999 number of images.
    Type: Number
    Default: 999
Type: AWS::ECR::Repository
   LifecyclePolicy:
        LifecyclePolicyText: |
          {
              "rules": [
                {
                  "rulePriority": 1,
                  "description": "Rule 1",
                  "selection": {
                      "tagStatus": "any",
                      "countType": "imageCountMoreThan",
                      "countNumber": !Ref ECRImageRetention
                  },
                  "action": {
                    "type": "expire"
                  }
                }
              ]
            }

[AWS::ECR::Repository] - [BUG] - resources don't receive the aws:cloudformation built-in tags / default service-managed auto-tags

Name of the resource

AWS::ECR::Repository

Issue Description

To find the right CloudFormation Stack, where a AWS resource is defined/maintained aws:cloudformation:* built-in tags are needed. This is an important function in day-to-day business.

Expected Behavior

Resources with type AWS::ECR::Repository, which are managed as CloudFormations Stacks, should automatically receive the aws:cloudformation:* built-in tags / automatic default CFN AutoTags.

Furthermore those aws:cloudformation:* built-in tags must be handled by CloudFormation Drift-Detection correctly (hence, aws:cloudformation:* tags are not a drift)

Observed Behavior

When you have an AWS::ECR::Repository resource in your stack, it does not get the built-in tags assigned: aws:cloudformation:stack-name, aws:cloudformation:logical-id and aws:cloudformation:stack-id

Test Cases

Deploy a CloudFormation stack containing this resource named above (e.g. sample from AWS docs) and check the tags on the console. You can't see aws:cloudformation:* built-in tags.

I've re-tested it right now in eu-central-1 region. No tags aws:cloudformation:* are added to the ECS Service resource.

Other Details

In the area of AWS ECS/ECR Services the resource AWS::ECS::Cluster already receiving aws:cloudformation:* auto-tags.

Furthermore, there is already an open issue in cloudformation-coverage-roadmap repo aws-cloudformation/cloudformation-coverage-roadmap#1280 since 2022.

AWS::ECR::Repository-EncryptionConfiguration

Cross posting here for tracking.

aws-cloudformation/cloudformation-coverage-roadmap#654

As of Jul 29, 2020 ECR now supports encryption of images using AWS KMS keys.
https://aws.amazon.com/about-aws/whats-new/2020/07/ecr-supports-encryption-images-aws-kms-keys/

Please add EncryptionConfiguration property to AWS::ECR::Repository resource type.

AWS::ECR::Repository
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html

EncryptionConfiguration
https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_EncryptionConfiguration.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.