Skip to content

Instantly share code, notes, and snippets.

View FernandoMiguel's full-sized avatar

Fernando Miguel FernandoMiguel

View GitHub Profile
@FernandoMiguel
FernandoMiguel / good_zone_ids.tf
Created February 7, 2022 12:29
here’s how simple it is to avoid putting resources from the bad us-east1 AZ
data "aws_availability_zones" "good_zone_ids" {
exclude_zone_ids = [
# There are no modern instance types in use1-az3; AWS has left
# that zone behind for the most part. See, for example, here:
# https://www.reddit.com/r/aws/comments/g5lh7h/t3m5r5_instance_types_in_use1az3/
"use1-az3",
]
state = "available"
}
output "good_zone_ids" { value = data.aws_availability_zones.good_zone_ids }