https://pulumi.com logo
i

icy-controller-6092

06/29/2023, 11:15 AM
is there a way to use this with Pulumi? https://github.com/fly-apps/terraform-provider-fly Is it a case of starting with https://github.com/pulumi/pulumi-tf-provider-boilerplate - is this the right path? If so, would be happy to sync up with anyone who might have already started working on it
s

salmon-account-74572

06/29/2023, 3:26 PM
I believe that is the right place to start, although there have been some recent developments in generating Pulumi providers---let me double-check that for you.
I just confirmed internally that you’re on the right path. 🙂
e

echoing-kite-20691

06/29/2023, 3:40 PM
For reference, there's been some talks about a pulumi provider here
s

salmon-account-74572

06/29/2023, 3:43 PM
m

many-telephone-49025

07/09/2023, 1:24 PM
Hey @icy-controller-6092, i created the provider here: https://github.com/dirien/pulumi-fly
e

echoing-kite-20691

07/26/2023, 8:25 PM
Hi @many-telephone-49025! Is it possible to use the fly provider from YAML?
m

many-telephone-49025

07/26/2023, 9:06 PM
@echoing-kite-20691 yes ofc. you just need to install the plugin via `pulumi plugin install…``
e

echoing-kite-20691

07/27/2023, 8:47 AM
Ah! I tried that originally and got an error because the cli assumed the plugin was published under pulumi. Adding the
--server
param fixed it. That was not super obvious but after digging in the docs a little bit it made sense. Thanks! I'm gonna test this out in the next few days
m

many-telephone-49025

07/29/2023, 4:34 AM
@echoing-kite-20691, I wish the provider had support for creating a DB too.
e

echoing-kite-20691

08/12/2023, 11:54 AM
@many-telephone-49025 I tried importing some resources into the existing stacks without any success.
Copy code
~/S/e/i/definition ❯❯❯ pulumi import fly:index/app:App synchronizer-app 1451176 -s staging -v 10                                                                         ✘ 255 main ◼
Previewing import (staging)

View in Browser (Ctrl+O): <https://app.pulumi.com/ellipsus/monolith/staging/previews/5d95b9ea-5756-46e2-9304-75bb8c491e01>

     Type                 Name              Plan       Info
     pulumi:pulumi:Stack  monolith-staging             1 error
 =   └─ fly:index:App     synchronizer-app  import     1 error


Diagnostics:
  pulumi:pulumi:Stack (monolith-staging):
    error: preview failed

  fly:index:App (synchronizer-app):
    error: Preview failed: Cannot extract ID from "fly_app" resource state: ID cannot be empty
Is there a way to get it to output more debug info? I have the impression that the problem is coming from the underlying terraform provider and not the pulumi wrapper, but I'm not sure. Also please let me know if there's a better place where to raise these issues.
m

many-telephone-49025

08/14/2023, 3:51 PM
@echoing-kite-20691 interesting! I did not try to import an existing App. I have to try this!