UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

47 lines (46 loc) 1.91 kB
import * as pulumi from "@pulumi/pulumi"; /** * `spacelift.getCurrentSpace` is a data source that provides information about the space that an administrative stack is in if the run is executed within Spacelift by a stack or module. This makes it easier to create resources within the same space. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * import * as spacelift from "@spacelift-io/pulumi-spacelift"; * * const this = spacelift.getCurrentSpace({}); * const prod_k8s_ie = new spacelift.Context("prod-k8s-ie", { * description: "Configuration details for the compute cluster in 🇮🇪", * spaceId: _this.then(_this => _this.id), * }); * ``` */ export declare function getCurrentSpace(opts?: pulumi.InvokeOptions): Promise<GetCurrentSpaceResult>; /** * A collection of values returned by getCurrentSpace. */ export interface GetCurrentSpaceResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; } /** * `spacelift.getCurrentSpace` is a data source that provides information about the space that an administrative stack is in if the run is executed within Spacelift by a stack or module. This makes it easier to create resources within the same space. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * import * as spacelift from "@spacelift-io/pulumi-spacelift"; * * const this = spacelift.getCurrentSpace({}); * const prod_k8s_ie = new spacelift.Context("prod-k8s-ie", { * description: "Configuration details for the compute cluster in 🇮🇪", * spaceId: _this.then(_this => _this.id), * }); * ``` */ export declare function getCurrentSpaceOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetCurrentSpaceResult>;