pulumi / pulumi-converter-terraform

Apache License 2.0
10 stars 4 forks source link

Cannot convert terraform projects with git referenced modules #222

Open brandonpollack23 opened 2 weeks ago

brandonpollack23 commented 2 weeks ago

Example

Found this when trying to contribute to a friend's infra (by converting it to pulumi)

this results in the following generated code which fails with no diagnostics:

component "deployNixosGit" "./deploy_nixos?ref=d055d2180da230e47ba9082fc53a8b7d1fadbc43" {
  nixosConfig = "../nixos_configs/git.nix"
  targetUser  = "root"
  targetHost  = git-1.ipv4Address
  triggers = {
    instanceId = git-1.id
  }
}

The HCL module is pulled down and put in a folder (as referenced)

When inspecting that there are some notimplemented blocks in it. Perhaps that should be in the diagnostic at least if it is the issue?

brandonpollack23 commented 2 weeks ago

I believe this should be handled by https://github.com/pulumi/pulumi-converter-terraform/issues/186