Closed corymhall closed 2 months ago
@t0yv0
I'm pretty sure this is coming from https://github.com/pulumi/pulumi-terraform-bridge/blob/master/pkg/tfbridge/schema.go#L1743 or around that code, where PF bridge reuses ExtractInputsFromOutputs function from the old bridge but PF bridge does not support or expect __defaults. I'll file a matching issue in the bridge as this is the right place to resolve it.
Describe what happened
Steps to reproduce:
pulumi up
pulumi state delete 'urn:pulumi:dev::test-aws-pf::aws:appconfig/environment:Environment::res'
pulumi import aws:appconfig/environment:Environment res "8i7rjaa:hi75mq1" --provider aws-provider=urn:pulumi:dev::test-aws-pf::pulumi:providers:aws::aws-provider
inputs.tags
have a"__defaults": []
property.pulumi stack export
pulumi refresh
and get an errorpulumi up
and view the state. Notice that the"__defaults": []
property is no longer therepulumi refresh
and it will succeed.Sample program
Log output
Here are the grpc logs
CLI import
Refresh
Affected Resource(s)
Any pf based resource.
Output of
pulumi about
Additional context
The same thing can be done with sdkv2 based resources without any error. sdkv2 based resource still have the
"__defaults": []
key written to the state, but it does not cause an error to be thrown on refresh.Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).