Skip to content

Commit

Permalink
Merge pull request #48 from kookmin-sw/kmkim-dev
Browse files Browse the repository at this point in the history
add: karpenter node iam name
  • Loading branch information
QueueMin authored May 2, 2024
2 parents 7463ca5 + 7333a02 commit 61ef70f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 18 deletions.
1 change: 1 addition & 0 deletions IaC/kubernetes_cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,4 @@ resource "helm_release" "kuberay_operator" {

depends_on = [module.eks]
}

1 change: 1 addition & 0 deletions IaC/serverless_api_template/lambda/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ resource "aws_lambda_function" "lambda" {
RECOMMEND_BUCKET_NAME = var.recommend_bucket_name
DB_API_URL = var.db_api_url
STATE_BUCKET_NAME = var.state_bucket_name
KARPENTER_NODE_ROLE = var.karpenter_node_iam_node_name
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion IaC/serverless_api_template/lambda/var.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ variable "attach_vpc_policy" {}
variable "attach_eks_policy" {}
variable "recommend_bucket_name" {}
variable "db_api_url" {}
variable "state_bucket_name" {}
variable "state_bucket_name" {}
variable "karpenter_node_iam_node_name" {}
35 changes: 18 additions & 17 deletions IaC/serverless_api_template/lambdas.tf
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
module "lambda" {
source = "./lambda"
prefix = var.prefix
container_registry = var.container_registry
container_repository = var.container_repository
container_image_tag = var.container_image_tag
ram_mib = var.lambda_ram_size
eks_cluster_name = var.eks_cluster_name
attach_ssm_readonly_policy = var.attach_ssm_readonly_policy
attach_ec2_policy = var.attach_ec2_policy
attach_cloudwatch_policy = var.attach_cloudwatch_policy
attach_lambda_policy = var.attach_lambda_policy
attach_s3_policy = var.attach_s3_policy
attach_vpc_policy = var.attach_vpc_policy
attach_eks_policy = var.attach_eks_policy
recommend_bucket_name = var.recommend_bucket_name
state_bucket_name = var.state_bucket_name
db_api_url = var.db_api_url
source = "./lambda"
prefix = var.prefix
container_registry = var.container_registry
container_repository = var.container_repository
container_image_tag = var.container_image_tag
ram_mib = var.lambda_ram_size
eks_cluster_name = var.eks_cluster_name
attach_ssm_readonly_policy = var.attach_ssm_readonly_policy
attach_ec2_policy = var.attach_ec2_policy
attach_cloudwatch_policy = var.attach_cloudwatch_policy
attach_lambda_policy = var.attach_lambda_policy
attach_s3_policy = var.attach_s3_policy
attach_vpc_policy = var.attach_vpc_policy
attach_eks_policy = var.attach_eks_policy
recommend_bucket_name = var.recommend_bucket_name
state_bucket_name = var.state_bucket_name
db_api_url = var.db_api_url
karpenter_node_iam_node_name = var.karpenter_node_iam_node_name
}
6 changes: 6 additions & 0 deletions IaC/serverless_api_template/var.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ variable "db_api_url" {
default = ""
}

variable "karpenter_node_iam_node_name" {
type = string
default = ""
}

variable "attach_ssm_readonly_policy" {
type = bool
default = false
Expand Down Expand Up @@ -87,3 +92,4 @@ variable "attach_eks_policy" {
type = bool
default = false
}

0 comments on commit 61ef70f

Please sign in to comment.