Skip to content

Commit

Permalink
update gruntfile
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jul 18, 2024
1 parent 051eeb1 commit 0d9b701
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions lab/us-gov-east-1/vpc/mcmCluster/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,33 @@ provider "aws" {
Terragrunt = "true"
}
}
# Only these AWS Account IDs may be operated on by this template
allowed_account_ids = ["${local.account_id}"]
}
data "aws_eks_cluster" "cluster" {
name = var.cluster_name
}
data "aws_eks_cluster_auth" "cluster" {
name = var.cluster_name
}
provider "kubernetes" {
host = data.aws_eks_cluster.cluster.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.cluster.token
}
provider "helm" {
kubernetes {
host = data.aws_eks_cluster.cluster.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.cluster.token
}
}
EOF
}

Expand All @@ -60,16 +83,14 @@ remote_state {
}
config = {
bucket = "tg-infrastructure-tf-state-lab-dev-ew-us-gov-east-1"
key = "${local.project_number}/${local.project_name}/terraform.tfstate"
key = "${local.project_number}/${local.project_name}/${local.project_role}/terraform.tfstate"
region = local.region_vars.locals.aws_region
encrypt = true
dynamodb_table = "tf_remote_state"
}
}

inputs = merge(
# local.common_vars.locals,
local.account_vars.locals,
local.region_vars.locals,
# local.vpc_vars.locals,
)

0 comments on commit 0d9b701

Please sign in to comment.