Enable zonal shift for your Application Load Balancer - Elastic Load Balancing
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Enable zonal shift for your Application Load Balancer

Zonal shift is disabled by default and must be enabled on each Application Load Balancer. This ensures that you can start a zonal shift using only the specific Application Load Balancers that you want. For more information, see Zonal shift for your Application Load Balancer.

Console
To enable zonal shift
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. On the navigation pane, under Load Balancing, choose Load Balancers.

  3. Select the Application Load Balancer.

  4. On the Attributes tab, choose Edit.

  5. Under Availability Zone routing configuration, for ARC zonal shift integration, choose Enable.

  6. Choose Save changes.

Amazon CLI
To enable zonal shift

Use the modify-load-balancer-attributes command with the zonal_shift.config.enabled attribute.

aws elbv2 modify-load-balancer-attributes \ --load-balancer-arn load-balancer-arn \ --attributes "Key=zonal_shift.config.enabled,Value=true"
CloudFormation
To enable zonal shift

Update the AWS::ElasticLoadBalancingV2::LoadBalancer resource to include the zonal_shift.config.enabled attribute.

Resources: myLoadBalancer: Type: 'AWS::ElasticLoadBalancingV2::LoadBalancer' Properties: Name: my-alb Type: application Scheme: internal IpAddressType: dualstack Subnets: - !Ref subnet-AZ1 - !Ref subnet-AZ2 SecurityGroups: - !Ref mySecurityGroup LoadBalancerAttributes: -Key: "zonal_shift.config.enabled" Value: "true"