Skip to content

Commit

Permalink
filter local zones (#13)
Browse files Browse the repository at this point in the history
default cluster creation doesn't internally distinguish local zones

tf may try to create a nat gateway there or the control plane
both will result in a failed create status
  • Loading branch information
LorenzoBoccaccia authored Jul 2, 2024
1 parent 4f96f68 commit 692afa0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cluster/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ data "aws_ecrpublic_authorization_token" "token" {
provider = aws.virginia
}

data "aws_availability_zones" "available" {}
data "aws_availability_zones" "available" {
filter {
name = "opt-in-status"
values = ["opt-in-not-required"]
}
}

locals {
name = "karpenter-blueprints"
Expand Down

0 comments on commit 692afa0

Please sign in to comment.