Skip to content

Expose provider metadata #345

@paddycarver

Description

@paddycarver

Now that hashicorp/terraform#22583 has been merged, we need to surface the new protocol information. I'm inclined to do it using the ResourceData, as it is in the PR, but I think the open question is whether the method on ResourceData takes a pointer and unmarshals the cty into it, or whether the ResourceData method returns the cty.Value and the gocty package is used to turn it into a Go struct directly. The benefits of accepting the pointer is the gocty dependency is hidden a bit and users don't need to know or think about it. The benefits of returning the cty.Value type is it's more flexible. See also #261.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions