Caveat: requires json tags on the golang structs as zclconf/go-cty only supports UnmarshalJSON
// json tags required for toHCLAssignment function
// in util/template.go
type ProviderVersion struct {
Source string `yaml:"source" json:"source"`
Version *string `yaml:"version" json:"version"`
}
Example Implementation writing a
foo = {}
assignmentExample Implementation writing a
provider "foo" {}
blockUsage in go templates:
Result: