pulumi / pulumi-terraform-bridge

A library allowing Terraform providers to be bridged into Pulumi.
Apache License 2.0
196 stars 43 forks source link

Cross-test unknown values #1858

Open t0yv0 opened 6 months ago

t0yv0 commented 6 months ago

The cross-testing in #1801 is as yet unable to verify handling unknown values. The limitation here is that the drivers use HCL and Pulumi YAML to feed data into the respective CLIs for an end-to-end test, but there are no literals for unknown values. To emulate this one would need to emit an additional helper resource reference to simulate an unknown-at-preview output in the provider.

In addition, it is worth verifying if Block-typed TF schemas can ever accept unknown values at runtime; if not, randomized generation should not try to sample them probably, and we would need to confirm that Pulumi bridged providers reject them for blocks.

### Tasks
VenelinMartinov commented 4 months ago

This might be interesting to investigate once we add unknowns to cross-tests: https://github.com/pulumi/pulumi-terraform-bridge/issues/2032