嗨,我在部署CFT时出错:
“ repositoryName”处的无效参数无法满足约束条件:“必须满足正则表达式'(?:[a-z0-9] +(?:[。-] [a-z0-9] +) * /)* [a-z0-9] +(?:[。-] [a-z0-9] +)*''(服务:AmazonECR;状态代码:400;错误代码:InvalidParameterException;请求ID:4d8ef967-7054-11e9-889a-d363993e624b)
"Mappings": {
"HiddenParameters": {
"ClusterName": {
"Linux": "J-Agent-Linux",
"Windows": "J-Agent-Windows",
"JenkinsMaster": "J-Master"
},
"AsgName": {
"Linux1": "J_Agent_Linux_ASG",
"JenkinsMaster": "J_Master_ASG",
"Windows1": "J_Agent_Windows_ASG"
},
"LoadbalancerName": {
"Name": "J-Master-LB"
},
"TargetGroupName": {
"Name": "ECS-Jenkins"
},
"EFSTagName": {
"Name": "JenkinsEFSforECS"
},
"ECSMasterTaskFamily": {
"Name": "jenkins-master-cft"
},
"iamusername": {
"Name": "jenkins_ecs_user"
},
"ecsinstancerolename": {
"Name": "ECSInstanceRole"
},
"jenkinsmasterecrnamespace": {
"Name": "jenkins-master"
},
"jenkinsagentlinuxbaseecrnamespace": {
"Name": "agent-linux-base"
},
"jenkinsagentlinuxdatalakeecrnamespace": {
"Name": "agent-linux-datalake"
"jenkinsagentlinuxdatalakeecrrepository": {
"Type": "AWS::ECR::Repository",
"Properties": {
"RepositoryName": {
"Fn::Join": [
"",
[{
"Ref": "AWS::StackName"
},
"-",
{
"Fn::FindInMap": ["HiddenParameters", "jenkinsagentlinuxdatalakeecrnamespace", "Name"]
}
]
]
},
{
"Name": "JENKINS_ECR_IMAGE_LINUX_DATALAKE",
"Value": {
"Fn::Join": [
"",
[{
"Ref": "AWS::StackName"
},
"-",
{
"Fn::FindInMap": ["HiddenParameters", "jenkinsagentlinuxdatalakeecrnamespace", "Name"]
}
]
]
}
}