gpt4 book ai didi

aws-cloudformation - Cloudformation - ECRImageURI 无法满足约束

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

我有一个 ECRImage URI 的参数。当我尝试使用 taskcat 进行试运行测试时,出现以下错误

[ERROR] : ClientError 调用 CreateStack 操作时发生错误 (ValidationError):参数 ECRImageURI 无法满足约束:允许所有字符

但是我的模式正则表达式已经非常宽松了。想法?

  ECRImageURI:
AllowedPattern: ".*"
ConstraintDescription: "Allow all characters"
Default: 'http://464139160630.dkr.ecr.us-east-2.amazonaws.com/www.pulliam.sh:latest'
Description: ECR Docker image to use in ECS Task definition.
MaxLength: '64'
MinLength: '1'
Type: String

编辑:基于文档here ,Cloudformation 使用 Java regular expressions 。所以我只能得出结论,taskcat 存在一些问题,或者发生了其他问题。

最佳答案

满足正则表达式模式,尽管 ^.*$ 可能更具表现力。但实际问题似乎出在 MaxLength 参数上。例如,您的默认值已经违反了长度限制。

关于aws-cloudformation - Cloudformation - ECRImageURI 无法满足约束,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69713639/

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