Skip to content

Commit

Permalink
Fix terraform variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Reham Tarek committed Aug 22, 2024
1 parent ead363b commit 37a726c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions terraform/eks/daemon/awsneuron/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ resource "aws_eks_node_group" "this" {
min_size = 1
}

ami_type = "AL2_x86_64"
ami_type = var.ami_type
capacity_type = "ON_DEMAND"
disk_size = 20
instance_types = ["t3.medium"]
instance_types = [var.instance_type]

depends_on = [
aws_iam_role_policy_attachment.node_AmazonEC2ContainerRegistryReadOnly,
Expand Down
9 changes: 9 additions & 0 deletions terraform/eks/daemon/awsneuron/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ variable "k8s_version" {
default = "1.28"
}

variable "ami_type" {
type = string
default = "AL2_x86_64"
}

variable "instance_type" {
type = string
default = "t3.medium"
}
4 changes: 2 additions & 2 deletions terraform/eks/daemon/hyperpod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ resource "aws_eks_node_group" "this" {
min_size = 1
}

ami_type = "AL2_x86_64"
ami_type = var.ami_type
capacity_type = "ON_DEMAND"
disk_size = 20
instance_types = ["t3.medium"]
instance_types = [var.instance_type]

labels = { "beta.kubernetes.io/instance-type" : "ml.t3.medium", "sagemaker.amazonaws.com/node-health-status" : "Schedulable", }

Expand Down
2 changes: 1 addition & 1 deletion terraform/eks/daemon/hyperpod/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ variable "ami_type" {

variable "instance_type" {
type = string
default = "t3a.medium"
default = "t3.medium"
}

0 comments on commit 37a726c

Please sign in to comment.