Skip to content

Commit 3c4521f

Browse files
authored
Merge pull request #58 from worldcoin/arch-enclaves
Add option to set arch for enclave track
2 parents 633e9f1 + e87a63e commit 3c4521f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

node-groups-enclave-tracks.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resource "aws_launch_template" "enclave_track" {
66

77
name_prefix = "eks-node-enclaves-${each.key}-${var.cluster_name}-"
88

9-
image_id = data.aws_ssm_parameter.al2023_ami[try(var.eks_node_group.arch, "amd64")].value
9+
image_id = data.aws_ssm_parameter.al2023_ami[each.value.arch].value
1010
instance_type = coalesce(each.value.instance_type, var.enclaves_instance_type)
1111
vpc_security_group_ids = [aws_security_group.node.id]
1212
ebs_optimized = true

variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ variable "enclave_tracks" {
621621
instance_type = optional(string)
622622
cpu_allocation = optional(string)
623623
memory_allocation = optional(string)
624+
arch = optional(string, "amd64")
624625
}))
625626
default = {}
626627

0 commit comments

Comments
 (0)