AWS Application Load Balancer 无法更新,必须重新创建

问题描述 投票:0回答:1

使用 CDK,我将 Application Load Balancer 资源的

internetFacing
属性从
true
切换到
false
。当我部署堆栈时,我得到以下输出:

my-stack |  0/19 | 4:47:31 PM | UPDATE_IN_PROGRESS   | AWS::ElasticLoadBalancingV2::LoadBalancer   | ApplicationLoadBalancer (ApplicationLoadBalancerFD56DEE1) Requested update requires the creation of a new physical resource; hence creating one.
my-stack |  0/19 | 4:47:32 PM | UPDATE_FAILED        | AWS::ElasticLoadBalancingV2::LoadBalancer   | ApplicationLoadBalancer (ApplicationLoadBalancerFD56DEE1) Resource handler returned message: "Resource of type 'AWS::ElasticLoadBalancingV2::LoadBalancer' with identifier 'my-lb' already exists." (RequestToken: ..., HandlerErrorCode: AlreadyExists)

更改此属性时是否无法更新LB?

amazon-web-services aws-cloudformation aws-cdk
1个回答
0
投票

是的,根据弹性负载均衡器的 AWS 文档,更改

Scheme
需要更换。

方案

必填:否

类型:字符串

允许的值:面向互联网 |内部

更新需要:更换

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-scheme

© www.soinside.com 2019 - 2024. All rights reserved.