@pulumi/terraform
Version:
The Terraform resource provider for Pulumi lets you consume the outputs contained in Terraform state files from your Pulumi programs.
41 lines (40 loc) • 1.26 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Access state from the local filesystem.
*/
export declare function getLocalReference(args?: GetLocalReferenceArgs, opts?: pulumi.InvokeOptions): Promise<GetLocalReferenceResult>;
export interface GetLocalReferenceArgs {
/**
* The path to the tfstate file. This defaults to "terraform.tfstate" relative to the root module by default.
*/
path?: string;
/**
* The path to non-default workspaces.
*/
workspaceDir?: string;
}
/**
* The result of fetching from a Terraform state store.
*/
export interface GetLocalReferenceResult {
/**
* The outputs displayed from Terraform state.
*/
readonly outputs: {
[key: string]: any;
};
}
/**
* Access state from the local filesystem.
*/
export declare function getLocalReferenceOutput(args?: GetLocalReferenceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLocalReferenceResult>;
export interface GetLocalReferenceOutputArgs {
/**
* The path to the tfstate file. This defaults to "terraform.tfstate" relative to the root module by default.
*/
path?: pulumi.Input<string>;
/**
* The path to non-default workspaces.
*/
workspaceDir?: pulumi.Input<string>;
}