@spacelift-io/pulumi-spacelift
Version:
A Pulumi package for creating and managing Spacelift resources.
51 lines • 2.27 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCurrentSpaceOutput = exports.getCurrentSpace = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* `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),
* });
* ```
*/
function getCurrentSpace(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("spacelift:index/getCurrentSpace:getCurrentSpace", {}, opts);
}
exports.getCurrentSpace = getCurrentSpace;
/**
* `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),
* });
* ```
*/
function getCurrentSpaceOutput(opts) {
return pulumi.output(getCurrentSpace(opts));
}
exports.getCurrentSpaceOutput = getCurrentSpaceOutput;
//# sourceMappingURL=getCurrentSpace.js.map