Skip to content

Commit

Permalink
Merge pull request #57 from kookmin-sw/jihun
Browse files Browse the repository at this point in the history
add env
  • Loading branch information
jhM00n authored May 11, 2024
2 parents def9bf0 + 0112473 commit 942283d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
11 changes: 6 additions & 5 deletions IaC/serverless_api_template/lambda/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@ resource "aws_lambda_function" "lambda" {

environment {
variables = {
EKS_CLUSTER_NAME = var.eks_cluster_name
DB_API_URL = var.db_api_url
STATE_BUCKET_NAME = var.state_bucket_name
EKS_CLUSTER_NAME = var.eks_cluster_name
DB_API_URL = var.db_api_url
STATE_BUCKET_NAME = var.state_bucket_name
KARPENTER_NODE_ROLE = var.karpenter_node_iam_node_name
REGION = var.region_name
ECR_URI = var.container_registry
REGION = var.region_name
ECR_URI = var.container_registry
MODEL_S3_URL = var.model_s3_url
}
}
}
Expand Down
1 change: 1 addition & 0 deletions IaC/serverless_api_template/lambda/var.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ variable "db_api_url" {}
variable "state_bucket_name" {}
variable "karpenter_node_iam_node_name" {}
variable "region_name" {}
variable "model_s3_url" {}
1 change: 1 addition & 0 deletions IaC/serverless_api_template/lambdas.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ module "lambda" {
db_api_url = var.db_api_url
karpenter_node_iam_node_name = var.karpenter_node_iam_node_name
region_name = var.region_name
model_s3_url = var.model_s3_url
}
12 changes: 11 additions & 1 deletion IaC/serverless_api_template/var.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,17 @@ variable "db_api_url" {
}

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

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

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

Expand Down

0 comments on commit 942283d

Please sign in to comment.