@pulumi/terraform
Version:
The Terraform resource provider for Pulumi lets you consume the outputs contained in Terraform state files from your Pulumi programs.
52 lines (51 loc) • 1.56 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
/**
* Access state from a remote backend.
*/
export declare function getRemoteReference(args: GetRemoteReferenceArgs, opts?: pulumi.InvokeOptions): Promise<GetRemoteReferenceResult>;
export interface GetRemoteReferenceArgs {
/**
* The remote backend hostname to connect to.
*/
hostname?: string;
/**
* The name of the organization containing the targeted workspace(s).
*/
organization: string;
/**
* The token used to authenticate with the remote backend.
*/
token?: string;
workspaces: inputs.state.Workspaces;
}
/**
* The result of fetching from a Terraform state store.
*/
export interface GetRemoteReferenceResult {
/**
* The outputs displayed from Terraform state.
*/
readonly outputs: {
[key: string]: any;
};
}
/**
* Access state from a remote backend.
*/
export declare function getRemoteReferenceOutput(args: GetRemoteReferenceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRemoteReferenceResult>;
export interface GetRemoteReferenceOutputArgs {
/**
* The remote backend hostname to connect to.
*/
hostname?: pulumi.Input<string>;
/**
* The name of the organization containing the targeted workspace(s).
*/
organization: pulumi.Input<string>;
/**
* The token used to authenticate with the remote backend.
*/
token?: pulumi.Input<string>;
workspaces: pulumi.Input<inputs.state.WorkspacesArgs>;
}