Cloudformation - ECRImageURI 未能满足约束
Cloudformation - ECRImageURI failed to satisfy constraint
我有一个 ECRImage URI 参数。当我尝试使用带有 taskcat 的干 运行 进行测试时,出现以下错误
[ERROR ] : ClientError An error occurred (ValidationError) when calling the CreateStack operation: Parameter ECRImageURI failed to satisfy constraint: Allow all characters
但是我的模式正则表达式已经很宽松了。想法?
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 uses Java regular expressions。所以我只能得出结论,taskcat 存在一些问题,或者发生了其他问题。
正则表达式模式得到满足,尽管 ^.*$
可能更具表现力。但实际问题似乎与 MaxLength
参数有关。例如,您的默认值已经违反了长度限制。
我有一个 ECRImage URI 参数。当我尝试使用带有 taskcat 的干 运行 进行测试时,出现以下错误
[ERROR ] : ClientError An error occurred (ValidationError) when calling the CreateStack operation: Parameter ECRImageURI failed to satisfy constraint: Allow all characters
但是我的模式正则表达式已经很宽松了。想法?
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 uses Java regular expressions。所以我只能得出结论,taskcat 存在一些问题,或者发生了其他问题。
正则表达式模式得到满足,尽管 ^.*$
可能更具表现力。但实际问题似乎与 MaxLength
参数有关。例如,您的默认值已经违反了长度限制。