Check provider logo

Managed Instance Groups span multiple zones for high availability

compute_instance_group_multiple_zones

Severitylow
Servicecompute
by Prowler

Managed Instance Groups (MIGs) should be configured for multi-zone deployments to ensure high availability and fault tolerance. A multi-zone MIG distributes instances across multiple zones within a region, protecting applications from zonal failures.

Risk

Running a MIG in a single zone creates a single point of failure. If that zone experiences an outage, all instances in the group become unavailable, resulting in application downtime during zonal failures, no automatic failover to healthy zones, and reduced resilience against infrastructure issues.

Run this check with Prowler CLI

prowler gcp --checks compute_instance_group_multiple_zones

Recommendation

Use regional managed instance groups instead of zonal MIGs to distribute instances across multiple zones. This provides automatic failover and load distribution, ensuring high availability for production workloads.

Remediation

CLI

gcloud compute instance-groups managed create INSTANCE_GROUP_NAME --region=REGION --template=INSTANCE_TEMPLATE --size=TARGET_SIZE --zones=ZONE1,ZONE2,ZONE3

Terraform
Other
  1. Navigate to Compute Engine > Instance groups
  2. Click 'Create instance group'
  3. Select 'New managed instance group (stateless)'
  4. For 'Location', select 'Multiple zones'
  5. Choose the target region and zones
  6. Configure the instance template and target size
  7. Click 'Create'

Source Code

Resource Type

compute.googleapis.com/InstanceGroupManager

References