Skip to content

Commit

Permalink
fix providers
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jan 28, 2025
1 parent 589f96f commit 23fc0ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lab/root.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ locals {
account_id = local.account_vars.locals.aws_account_id
aws_profile = local.account_vars.locals.aws_profile
aws_region = local.region_vars.locals.aws_region
cluster_name = local.cluster_vars.locals.cluster_name
created_reason = local.cluster_vars.locals.created_reason
creator = local.cluster_vars.locals.creator
environment_abbr = local.account_vars.locals.environment_abbr
Expand Down Expand Up @@ -98,7 +99,7 @@ generate "kube-provider" {
path = "kube-provider.tf"
if_exists = "overwrite"
contents = <<-EOF
%{ if local.module_name != "tfmod-eks") ~}
%{ if "${local.module_name}" != "eks" ~}
data "aws_eks_cluster" "kube" {
name = "${local.cluster_name}"
}
Expand All @@ -119,7 +120,7 @@ generate "helm-provider" {
path = "helm-provider.tf"
if_exists = "overwrite"
contents = <<-EOF
%{ if local.module_name != "tfmod-eks") ~}
%{ if "${local.module_name}" != "eks" ~}
data "aws_eks_cluster" "helm" {
name = "${local.cluster_name}"
}
Expand Down

0 comments on commit 23fc0ad

Please sign in to comment.