Why Image Builder Lifecycle policy does not select for removal properly tagged resources?

0

On AWS Image Builder I've created a lifecycle policy stating to remove older than 6 months resources, retaining latest 2, all of which tagged.

      PolicyDetails:
        - Action:
            IncludeResources:
              Amis: True
              Snapshots: True
            Type: DELETE
          Filter:
            RetainAtLeast: 2
            Type: AGE
            Unit: MONTHS
            Value: 6
      ResourceSelection:
        TagMap:
          "CreatedBy": "EC2 Image Builder"

However any image/AMI/snapshot older than 6 months are not removed. The action logs shows no impacted resources. All AMIs and snapshots have the tag as defined above.

Roney
已提問 3 個月前檢視次數 66 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南