[英]Is this not how you refer a cloudformation resource?
使用 deisgner 構建了一個模板,Cloudformation 給出了一個
“resourcesToImport.1.member.resourceIdentifier”處的值“{LoadBalancerArn=}”未能滿足約束條件:映射值必須滿足約束條件:[成員長度必須小於或等於 2048,成員長度必須大於或等於 1 ];
對於以下代碼。 8 個不同的資源有 8 個相同的錯誤。 知道出了什么問題嗎?
"ELB": {
"Type": "AWS::ElasticLoadBalancingV2::LoadBalancer",
"Properties": {...},
"Metadata": {...}
},
"DeletionPolicy": "Retain"
},
"Listener": {
"Type": "AWS::ElasticLoadBalancingV2::Listener",
"Properties": {
"DefaultActions": [
{
"Type": "fixed-response",
"FixedResponseConfig": {
"ContentType": "text/plain",
"MessageBody": "Fixed Response",
"StatusCode": "200"
}
}
],
"LoadBalancerArn": {
"Ref": "ELB"
},
"Protocol": "HTTP"
},
"Metadata": {
"AWS::CloudFormation::Designer": {...}
},
"DependsOn": [
"ELB"
],
"DeletionPolicy": "Retain"
}
至少, DeletionPolicy
處於錯誤的級別:
"ELB": {
"Type": "AWS::ElasticLoadBalancingV2::LoadBalancer",
"Properties": {...},
"Metadata": {...}
},
"DeletionPolicy": "Retain"
應該在這里:
"ELB": {
"Type": "AWS::ElasticLoadBalancingV2::LoadBalancer",
"Properties": {...},
"Metadata": {...}
"DeletionPolicy": "Retain"
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.