-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
...runt-dev/300-kubernetes/130-external-secrets/20-external-secret-store/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
...erragrunt-dev/300-kubernetes/130-external-secrets/20-external-secret-store/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Include all settings from the root terragrunt.hcl file | ||
include { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
terraform { | ||
source = "github.com/ManagedKube/kubernetes-ops.git//terraform-modules/aws/helm/external-secrets/secret_store?ref=v2.0.4" | ||
} | ||
|
||
dependency "eks" { | ||
config_path = "${get_terragrunt_dir()}/../../../200-eks" | ||
|
||
mock_outputs = { | ||
zone_id = "zzzz" | ||
} | ||
mock_outputs_allowed_terraform_commands = ["validate", ] | ||
} | ||
|
||
# Generate a Kubernetes provider configuration for authenticating against the EKS cluster. | ||
generate "k8s_helm" { | ||
path = "k8s_helm_provider.tf" | ||
if_exists = "overwrite_terragrunt" | ||
contents = templatefile( | ||
find_in_parent_folders("provider_k8s_helm_for_eks.template.hcl"), | ||
{ | ||
eks_cluster_name = dependency.eks.outputs.cluster_id, | ||
kubergrunt_exec = get_env("KUBERGRUNT_EXEC", "kubergrunt") | ||
}, | ||
) | ||
} | ||
|
||
# --------------------------------------------------------------------------------------------------------------------- | ||
# Locals are named constants that are reusable within the configuration. | ||
# --------------------------------------------------------------------------------------------------------------------- | ||
locals { | ||
# Load common variables shared across all accounts | ||
common_vars = read_terragrunt_config(find_in_parent_folders("common.hcl")) | ||
|
||
# Load region-level variables | ||
region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl")) | ||
|
||
# Load environment-level variables | ||
environment_vars = read_terragrunt_config(find_in_parent_folders("environment.hcl")) | ||
|
||
tags = { | ||
ops_env = local.common_vars.locals.environment_name | ||
ops_managed_by = "terraform" | ||
ops_source_repo = local.common_vars.locals.repository_name | ||
ops_source_repo_path = "${local.common_vars.locals.base_repository_path}/${path_relative_to_include()}" | ||
ops_owners = "devops" | ||
} | ||
} | ||
|
||
# --------------------------------------------------------------------------------------------------------------------- | ||
# MODULE PARAMETERS | ||
# These are the variables we have to pass in to use the module specified in the terragrunt configuration above | ||
# --------------------------------------------------------------------------------------------------------------------- | ||
inputs = { | ||
environment_name = local.common_vars.locals.environment_name | ||
} |