How to use @pulumi/terraform - 1 common examples

To help you get started, we’ve selected a few @pulumi/terraform examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pulumi / pulumi-terraform / examples / localstate-nodejs / index.ts View on Github external
import * as tf from "@pulumi/terraform";
import * as pulumi from "@pulumi/pulumi";
import * as path from "path";

const config = new pulumi.Config()
const statefile = config.require("statefile")

const remotestate = new tf.state.RemoteStateReference("localstate", {
   backendType: "local",
   path: path.join(__dirname, statefile),
});

export const vpcId= remotestate.getOutput("vpc_id");
export const publicSubnetIds = remotestate.getOutput("public_subnet_ids");
export const bucketArn = remotestate.getOutput("bucket_arn");

@pulumi/terraform

A Pulumi package for interoperating with infrastructure created with Terraform.

Apache-2.0
Latest version published 9 months ago

Package Health Score

80 / 100
Full package analysis

Popular @pulumi/terraform functions