Skip to content

Commit

Permalink
adding eks-loki
Browse files Browse the repository at this point in the history
  • Loading branch information
nangu001 committed Jul 2, 2024
1 parent 8a6611c commit 9a4570d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lab/us-gov-east-1/vpc/cluster/eks-loki/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# provider.tf
provider "aws" {
region = "us-gov-east-1"
profile = "224384469011-lab-dev-gov"
}

provider "kubernetes" {
config_path = "~/.kube/config"
config_context = "arn:aws-us-gov:eks:us-gov-east-1:224384469011:cluster/platform-eng-eks-test"
}

provider "helm" {
kubernetes {
config_path = "~/.kube/config"
config_context = "arn:aws-us-gov:eks:us-gov-east-1:224384469011:cluster/platform-eng-eks-test"
}
}
32 changes: 32 additions & 0 deletions lab/us-gov-east-1/vpc/cluster/eks-loki/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
terraform {
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-loki.git"
extra_arguments "retry_lock" {
commands = get_terraform_commands_that_need_locking()
arguments = ["-lock-timeout=20m"]
}
}

remote_state {
backend = "s3"
generate = {
path = "backend.tf"
if_exists = "overwrite_terragrunt"
}
config = {
bucket = "tg-infrastructure-tf-state-lab-dev-ew-us-gov-east-1"
key = "platform-eks-test-loki/terraform.tfstate"
region = "us-gov-east-1"
encrypt = true
}
}

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

inputs = {
profile = dependency.eks.inputs.profile
cluster_name = dependency.eks.inputs.cluster_name
oidc_provider_arn = dependency.eks.outputs.oidc_provider_arn
region = "us-gov-east-1"
}

0 comments on commit 9a4570d

Please sign in to comment.