Skip to content

Commit

Permalink
used dependency to get the inputs from EKS module
Browse files Browse the repository at this point in the history
  • Loading branch information
nangu001 committed May 3, 2024
1 parent 1c09ef5 commit 9e04bcc
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions eks-config/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
locals {
# In which AWS region are operations being performed
vpc_id = "vpc-0280f77b373744eaa"
profile = "224384469011-lab-dev-gov.inf-admin-t3"
cluster_name = "platform-eng-eks-test"
subnets = [
"subnet-078b228071c609a50",
"subnet-02c2250b9ec2dd6a2",
"subnet-07a6339be3670fb41",
]
security_group_all_worker_mgmt_id = "sg-02b62e91afdbeba6b"
eks_managed_node_groups_autoscaling_group_names = ["eks-eks-platform-eng-eks-test-nodegroup-20240501173536404400000016-3ec79a9c-f002-40c6-8358-29fbacfbb3e8"]
tag_costallocation = "census:csvd:platformbaseline"
region = "us-gov-east-1"
oidc_provider_arn = "arn:aws-us-gov:iam::224384469011:oidc-provider/oidc.eks.us-gov-east-1.amazonaws.com/id/7DE08671C3526A48AD5537E814DC2828"
# vpc_id = "vpc-0280f77b373744eaa"
# profile = "224384469011-lab-dev-gov.inf-admin-t3"
# cluster_name = "platform-eng-eks-test"
# subnets = [
# "subnet-078b228071c609a50",
# "subnet-02c2250b9ec2dd6a2",
# "subnet-07a6339be3670fb41",
# ]
# security_group_all_worker_mgmt_id = "sg-02b62e91afdbeba6b"
# eks_managed_node_groups_autoscaling_group_names = ["eks-eks-platform-eng-eks-test-nodegroup-20240501173536404400000016-3ec79a9c-f002-40c6-8358-29fbacfbb3e8"]

# region = "us-gov-east-1"
# oidc_provider_arn = "arn:aws-us-gov:iam::224384469011:oidc-provider/oidc.eks.us-gov-east-1.amazonaws.com/id/7DE08671C3526A48AD5537E814DC2828"

tag_costallocation = "census:csvd:platformbaseline"
tags = {

"eks-cluster-name" = "platform-eng-eks-test"
Expand All @@ -24,7 +25,7 @@ locals {
}

terraform {
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-eks-configuration.git"
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-eks-configuration.git?ref=autoscaler-updates"
extra_arguments "retry_lock" {
commands = get_terraform_commands_that_need_locking()
arguments = ["-lock-timeout=20m"]
Expand All @@ -46,15 +47,19 @@ remote_state {
}
}

dependency "eks" {
config_path = "../eks"
}

inputs = {
profile = local.profile
vpc_id = local.vpc_id
cluster_name = local.cluster_name
subnets = local.subnets
security_group_all_worker_mgmt_id = local.security_group_all_worker_mgmt_id
eks_managed_node_groups_autoscaling_group_names = local.eks_managed_node_groups_autoscaling_group_names
tag_costallocation = local.tag_costallocation
oidc_provider_arn = local.oidc_provider_arn
region = local.region
profile = dependency.eks.inputs.profile
vpc_id = dependency.eks.outputs.vpc_id
cluster_name = dependency.eks.inputs.cluster_name
subnets = dependency.eks.outputs.subnets
security_group_all_worker_mgmt_id = dependency.eks.outputs.security_group_all_worker_mgmt_id
eks_managed_node_groups_autoscaling_group_names = dependency.eks.outputs.eks_managed_node_groups_autoscaling_group_names
oidc_provider_arn = dependency.eks.outputs.oidc_provider_arn
region = dependency.eks.inputs.region
tags = local.tags
tag_costallocation = local.tag_costallocation
}

0 comments on commit 9e04bcc

Please sign in to comment.