This code seems to create a reference to remote state, rather than import it. So accessing the outputs would be expected behaviour. What are you hoping to achieve?
little-cartoon-10569
12/02/2021, 8:45 PM
That's what the docs for the provider say, too:
The Terraform resource provider for Pulumi lets you consume the outputs contained in Terraform state files from your Pulumi programs. The package provides a RemoteStateReference resource which acts like a native Pulumi StackReference.
little-cartoon-10569
12/02/2021, 8:46 PM
Your question said "to import existing terraform state", but that's not what this provider does.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.