gpt4 book ai didi

amazon-web-services - 您如何为带有任何前缀标记的ECR设置生命周期策略?

转载 作者:行者123 更新时间:2023-12-03 15:03:23 25 4
gpt4 key购买 nike

我想为我的ECR设置生命周期策略。对于所有带标记的图像,其图像计数均大于1。
当前设置为Prefix,不能将其设置为空白。

AWS ECR策略控制台:
enter image description here

提前致谢。

最佳答案

所有标记图像的生命周期策略为now supported in ECR

您可以通过为“图像状态”选择Any来使用它。另外,在JSON中,您可以使用"tagStatus": "any"创建规则:

{
"rules": [
{
"rulePriority": 1,
"description": "Rule 1",
"selection": {
"tagStatus": "any",
"countType": "imageCountMoreThan",
"countNumber": 1
},
"action": {
"type": "expire"
}
}
]
}

关于amazon-web-services - 您如何为带有任何前缀标记的ECR设置生命周期策略?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47466433/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com