https://pulumi.com logo
#getting-started
Title
# getting-started
i

icy-controller-6092

05/26/2023, 10:14 PM
I'm looking to deploy fly.io apps in my pulumi stack but I see there is not yet a terraform provider. What do people do in this situation? I'm leaning towards having two seperate deployment processes, which is not necessarily a bad thing because deploying to fly with flyctl is rather slow as it waits for the machines to come up & then runs a healthcheck
c

clever-sunset-76585

05/26/2023, 10:26 PM
i

icy-controller-6092

05/26/2023, 10:26 PM
Ah thank you 🙂 can you bridge to the provider with the nodejs sdk?
c

clever-sunset-76585

05/26/2023, 10:27 PM
As for a Pulumi provider based on that, I thought I saw one somewhere but all I see is an empty repo in Fly's GH org. Not sure where else I might have seen it though.
I don't know if the Pulumi TF bridge can bridge that provider. A while back it wasn't possible due to the TF plugin version used by that provider, but maybe it can be bridged now.
i

icy-controller-6092

05/26/2023, 10:28 PM
I think you're right, just noticed this from @tall-crowd-93084: https://github.com/fly-apps/terraform-provider-fly/pull/148
c

clever-sunset-76585

05/26/2023, 10:29 PM
Ah yes indeed. That's the one I saw.
t

tall-crowd-93084

05/29/2023, 8:56 AM
@icy-controller-6092 I'd be interested to see where you get to with this - I've got 5 or so services that I've just manually deployed for now, but it would be great to spin them up per client with Pulumi!
i

icy-controller-6092

05/29/2023, 12:25 PM
I'm just deploying separately to my pulumi deploy process, but I wonder if you could implement this as a dynamic resource that lightly wraps the fly CLI? https://www.pulumi.com/docs/concepts/resources/dynamic-providers/
l

limited-rainbow-51650

05/29/2023, 8:24 PM
Hey @icy-controller-6092, do join the #plugin-framework channel. The author of our Pulumi Terraform bridge will be able to help you out.
b

billions-electrician-62741

06/07/2023, 1:37 PM
I'm also looking into using Pulumi to provision fly.io resources. I hit a wall before with Terraform because working around the limitations of the TF provider via the GraphQL provider (mainly for shared IPv4 addresses, and ideally also for deploys) made the configs difficult to author and to maintain. I'd like to implement my own dynamic resource provider to consume fly's GraphQL API, but reading through the docs I'm unsure if that's actually possible? (edit: watching

this walkthroughâ–¾

cleared up some of my misconceptions)