Open bhavinkotak opened 1 year ago
Thanks a lot for the report! Marking it as an enhancement as it extends the original basic implementation.
This should probably be moved to the upbound/provider-terraform repo
Moved to upbound/provider-terraform - https://github.com/upbound/provider-terraform/issues/45
What happened?
Usecase: We are trying to create EKS Cluster using Crossplane and to create multiple Node-groups/launch-templates we are using terraform-provider to dynamically read the details from the claim.yaml
claim.yaml
As per current behavior, terraform-provider gives 2 options to pass variables -
vars
&varFiles
.varFiles
supports data in HCL or JSON format.vars
support data in plain string - flat values only.What environment did it happen in?
Crossplane version: 1.10.1 provider-terraform: 0.2.0 Kubernetes: 1.23
Solution could be to enhance
vars
to take non-flat values as input & internally convert to HCL/JSON to pass to terraform-provider.