33 lines
971 B
HCL
33 lines
971 B
HCL
|
include "root" {
|
||
|
path = find_in_parent_folders()
|
||
|
}
|
||
|
|
||
|
terraform {
|
||
|
source = "${get_repo_root()}//modules/eks-cert-manager"
|
||
|
}
|
||
|
|
||
|
dependency "eks" {
|
||
|
config_path = "../eks"
|
||
|
|
||
|
mock_outputs_allowed_terraform_commands = ["validate", "plan"]
|
||
|
mock_outputs = {
|
||
|
cluster_id = "fake-cluster-id"
|
||
|
cluster_endpoint = "https://fake-cluster-endpoint.eks.amazonaws.com"
|
||
|
cluster_certificate_authority_data = "ZmFrZS1jYS1jZXJ0LWRhdGE="
|
||
|
}
|
||
|
}
|
||
|
|
||
|
locals {
|
||
|
config_vars = read_terragrunt_config(find_in_parent_folders("config.hcl"))
|
||
|
}
|
||
|
|
||
|
generate = local.config_vars.generate
|
||
|
|
||
|
inputs = {
|
||
|
cluster_id = dependency.eks.outputs.cluster_id
|
||
|
cluster_endpoint = dependency.eks.outputs.cluster_endpoint
|
||
|
cluster_certificate_authority_data = dependency.eks.outputs.cluster_certificate_authority_data
|
||
|
namespace = "cert-manager"
|
||
|
create_namespace = "true"
|
||
|
}
|