availability_zones

Description

The availability_zones parameter specifies the Availability Zones (AZs) the Rack creates its subnets in, as a comma-separated list. By defining specific AZs, you can ensure that your resources are distributed across the desired zones for better availability and fault tolerance.

The Rack uses the first two listed zones when high_availability is false, and the first three when it is true, the default. List at least that many zones.

Default Value

The default value for availability_zones is an empty string. When it is empty, the Rack takes the region's standard Availability Zones in alphabetical order and uses the first three, or the first two with high_availability=false.

From Rack version 3.26.1, Local Zones and Wavelength Zones are never chosen. On earlier versions, an install in a region where the AWS account has opted into a Local Zone or Wavelength Zone group fails unless availability_zones is set.

A Rack installed on 3.26.1 or later with availability_zones empty, in a region where the account has opted into a Local Zone or Wavelength Zone group, cannot be downgraded to 3.26.0. The update fails while replacing the Rack's subnets, and with efs_csi_driver_enable=true it can remove the EFS mount targets before it fails. Updating back to 3.26.1 or later recovers the Rack.

Use Cases

  • Controlled Resource Distribution: By specifying AZs, you can control how your resources are distributed across the AWS region, which can be important for compliance or operational reasons.
  • High Availability: Ensuring that your applications and services are spread across multiple AZs enhances fault tolerance and availability.

Setting Parameters

The availability_zones parameter can only be set at Rack installation. Example:

Key Value
availability_zones us-east-1a,us-east-1b,us-east-1c

Additional Information

Specifying AZs can help you optimize resource placement based on your application's requirements. For example, you might choose AZs based on their proximity to your user base or other AWS services. Ensure that the chosen AZs are available in your AWS region and that they meet your redundancy and latency requirements.