我有一个CloudFormation堆栈,该堆栈创建一个网络负载平衡器,并为其分配一个新分配的弹性IP,如下所示
"MyLoadBalancer":{
"Type" : "AWS::ElasticLoadBalancingV2::LoadBalancer",
"Properties" : {
"Scheme": "internet-facing",
"Type": "network",
"SubnetMappings": [
{
"AllocationId": {
"Fn::GetAtt": [
"MyElasticIP",
"AllocationId"
]
},
"SubnetId": {
"Ref": "LoadBalancerSubnetRef"
}
} ]
}
},
"MyElasticIP": {
"Type": "AWS::EC2::EIP",
"Properties": {
"Domain": "vpc"
}
}
这将按预期创建,但是在删除时,负载均衡器已与弹性IP正确分离,并已删除,但IP本身未释放。我可以使用控制台手动“取消关联地址”,所以不确定为什么会挂起吗?