使用 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?
是的,根据弹性负载均衡器的 AWS 文档,更改
Scheme
需要更换。
方案
必填:否
类型:字符串
允许的值:面向互联网 |内部
更新需要:更换