capact icon indicating copy to clipboard operation
capact copied to clipboard

Default and required values are not known in generated Terraform Manifests

Open lukaszo opened this issue 3 years ago • 1 comments

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.

lukaszo avatar Oct 07 '21 21:10 lukaszo

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

mszostok avatar Oct 08 '21 09:10 mszostok