gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
8.09k stars 980 forks source link

missing attribut output error while defining dependency for modules terragrunt.hc. #2108

Open ankur8 opened 2 years ago

ankur8 commented 2 years ago
    * /Users/IN22915691/demo/apprepo/infra/dev/euw/aks-setup2/terragrunt.hcl:39,34-42: Unsupported attribute; This object does not have an attribute named "outputs".

terragrunt.hcl for child folder

dependencies { paths = ["../aks-setup"] }

dependency "kubeaks" { config_path = "../aks-setup" skip_outputs = true }

inputs = { cluster_name = dependency.kubeaks.outputs.host

}

ankur8 commented 2 years ago

this is my folder structure

image

source for modue is source = "../../../../..//module-test/aks"

denis256 commented 2 years ago

Hi, definition of skip_outputs = true will skip generation of outputs, try to use mock_outputs / mock_outputs_allowed_terraform_commands

https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#dependency