Skip to content

Commit 02a5d02

Browse files
author
Oded Simon
committed
change var names
1 parent 402e0ca commit 02a5d02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ resource "aws_eks_cluster" "this" {
189189
}
190190

191191
resource "kubectl_manifest" "eni_config" {
192-
for_each = local.optional_pod_subnet_count > 0 ? zipmap(var.azs, slice(var.subnet_ids, local.eks_cluster_subnet_count, sum([local.eks_cluster_subnet_count, local.optional_pod_subnet_count]))) : {}
192+
for_each = local.optional_pod_subnet_count > 0 ? zipmap(var.availability_zones, slice(var.subnet_ids, local.eks_cluster_subnet_count, sum([local.eks_cluster_subnet_count, local.optional_pod_subnet_count]))) : {}
193193

194194
yaml_body = yamlencode({
195195
apiVersion = "crd.k8s.amazonaws.com/v1alpha1"

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ variable "subnet_ids" {
8686
default = []
8787
}
8888

89-
variable "azs" {
89+
variable "availability_zones" {
9090
description = "A list of availability zones in the region"
9191
type = list(string)
9292
}

0 commit comments

Comments
 (0)