Skip to content

Reexamine where we convert from Terraform values into attr.Values. #172

@paddycarver

Description

@paddycarver

Currently, the framework is following a model of keeping everything as a tftypes.Value all the way through the framework, until the config, state, or plan tries to retrieve it, then converts back from an attr.Value into a tftypes.Value when setting the config, state, or plan. That means that for all the framework code, we're more likely to be using the tftypes.Value abstraction than the attr.Value abstraction provider developers are using and expect.

I'm suspicious that we can clean up a lot of code, handle a lot of edge cases, and make more things work intuitively the way provider developers expect if we instead convert from tftypes.Values into attr.Values when handling protocol requests, and then passing around the attr.Values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtIssues tracking technical debt that we're carrying.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions