Open tleibovichverint opened 2 years ago
Hi,
most probably during the execution of run-all plan
mock output is passed to the terraform code and it fails trying to read cluster details from provided data...
To avoid this situation, if possible, can be provided valid mock outputs to not break plan execution, not sure if it is possible in this case since it is expected to have already deployed EKS cluster
good point, but if I would like to create everything from scratch with terragrunt dependencies. Is it possible? For example:
I want to use Terragrunt to deploy this example: https://github.com/aws-ia/terraform-aws-eks-blueprints/blob/main/examples/complete-kubernetes-addons/main.tf
So far, I was able to create the VPC/EKS resource without a problem, I separated each module into a different module directory, and everything worked as expected.
When I tried to do the same for the
Kubernetes-addons
module, I faced an issue with the data source trying to call to the cluster and failing since the cluster wasn't created at this point.Here's my
terragrunt.hcl
which I'm trying to executerun-all plan
with this specific module:The error that I'm getting here:
`
`
If I run it directly from the example,
terraform plan
worked as expected. Any idea how to workaround this issue?