capact
capact copied to clipboard
Default and required values are not known in generated Terraform Manifests
Description
Our Manifests generator for Terraform, generates Type with input data. It misses an information about required variables and default values. We should add this information so validator can inform user when required data is missed.
Additionally, provider may need some extra values. For example AWS provider needs credentials and region. We should make sure that all required values are passed. This requires little more research.
Reason
It will improve UX.
Consider to make it more robust: https://github.com/capactio/capact/blob/f279dd9f14605cb953553c4ee012dfe8512548ab/internal/cli/alpha/manifestgen/terraform.go#L134-L159
Currently we don't process objects but we can introduce sth similar to: https://github.com/capactio/capact/blob/f279dd9f14605cb953553c4ee012dfe8512548ab/internal/cli/alpha/manifestgen/helm.go#L263-L275