Add Blacklisting to aws_availability_zones Data Source #8462
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
provider
Pertains to the provider itself, rather than any interaction with AWS.
Milestone
Community Note
Description
The
aws_availability_zones
data source is great for creating reusable Terraform configurations across AWS Regions. There are a few use cases where it might make sense to purposefully blacklist certain Availability Zones by name or zone ID.Use Case 1: New Availability Zone Launches
When AWS adds a new Availability Zone, there is an increasing possibility that all services and functionality might not be available from day 1. Providing a blacklist is a quick way to prevent initial provisioning issues until all functionality can be verified.
Use Case 2: Known Missing Availability Zone Features
While all Availability Zones across a Region are generally similar, there have been observed cases where this is not true. Many AWS service APIs do not have a query for whether specific functionality exists per Availability Zone. e.g.
Use Case 3: Colocation of Services
Infrastructures may be using Availability Zone IDs to colocate networking for speed or reduction in inter-AZ data transfer costs.
Use Case 4: Purchased Availability Zone Reserved Capacity
Certain AWS services allow purchasing reserved capacity at a discounted price. Some of these reservations are based on Availability Zone.
Affected Data Source
aws_availability_zones
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: