https://pulumi.com logo
Title
r

rapid-raincoat-36492

10/04/2021, 5:21 PM
Has anyone looked into maintaining a terraform provider for Pulumi, especially now that the REST API is available? I'm moving a large terraform codebase over, and being able to access
terraform.state.RemoteStateReference
is lovely, but it only lets me migrate over modules that no other terraform modules depend on (without using SSM as a intermediary step). If I could access Pulumi Stack outputs from Terraform, I would be able to migrate over any terraform module, making it a lot easier to switch over
b

billowy-army-68599

10/04/2021, 5:25 PM
I don't think this is possible without modifying terraform itself. Adding a "terraform" provider is an interesting idea, but I can't see it'd work in practice
g

gentle-diamond-70147

10/04/2021, 5:26 PM
Not an answer to your question about a TF provider, but you can use Terraform's
external
data source to access Pulumi stack outputs. Here's an example - https://gist.github.com/clstokes/80cddb26e2defd708d499ed0c081d87c.
❤️ 2
r

rapid-raincoat-36492

10/04/2021, 8:33 PM
Thank you both!
g

gentle-diamond-70147

10/05/2021, 1:29 AM
You're welcome. 😁