https://pulumi.com logo
#general
Title
# general
r

rapid-raincoat-36492

11/17/2021, 3:45 PM
I just published a terraform provider for Pulumi Cloud, allowing terraform to directly read pulumi stack outputs, like:
Copy code
terraform {
  required_providers {
    pulumi = {
      version = "0.0.2"
      source  = "<http://hashicorp.com/transcend-io/pulumi|hashicorp.com/transcend-io/pulumi>"
    }
  }
}

provider "pulumi" {}

data "pulumi_stack_outputs" "stack_outputs" {
  organization = "transcend-io"
  project      = "some-pulumi-project"
  stack        = "dev"
}

output "version" {
  value = data.pulumi_stack_outputs.stack_outputs.version
}

output "stack_outputs" {
  value = data.pulumi_stack_outputs.stack_outputs.stack_outputs
}
This code has helped my company transition our large terraform codebase to a hybrid model using both terraform and pulumi, and the source is available here: https://github.com/transcend-io/terraform-provider-pulumi I'll be writing a blog post soon about our strategy in the migration as well
partypus 8bit 1
👍 6