@pulumi/terraform 5.14.0-alpha.1724152687 → 6.1.0-alpha.1745017390
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -99
- package/index.d.ts +6 -2
- package/index.js +21 -16
- package/index.js.map +1 -0
- package/package.json +12 -10
- package/package.json.dev +25 -23
- package/provider.d.ts +21 -0
- package/provider.js +38 -0
- package/provider.js.map +1 -0
- package/state/getLocalReference.d.ts +40 -0
- package/state/getLocalReference.js +32 -0
- package/state/getLocalReference.js.map +1 -0
- package/state/getRemoteReference.d.ts +51 -0
- package/state/getRemoteReference.js +34 -0
- package/state/getRemoteReference.js.map +1 -0
- package/state/index.d.ts +6 -15
- package/state/index.js +11 -39
- package/state/index.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +23 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +2 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
- package/package.json.bak +0 -25
- package/state/artifactoryBackendConfig.d.ts +0 -39
- package/state/artifactoryBackendConfig.js +0 -15
- package/state/azurermBackendConfig.d.ts +0 -85
- package/state/azurermBackendConfig.js +0 -15
- package/state/consulBackendConfig.d.ts +0 -62
- package/state/consulBackendConfig.js +0 -15
- package/state/etcdBackendConfig.d.ts +0 -32
- package/state/etcdBackendConfig.js +0 -15
- package/state/etcdV3BackendConfig.d.ts +0 -47
- package/state/etcdV3BackendConfig.js +0 -15
- package/state/gcsBackendConfig.d.ts +0 -36
- package/state/gcsBackendConfig.js +0 -15
- package/state/httpBackendConfig.d.ts +0 -51
- package/state/httpBackendConfig.js +0 -3
- package/state/localBackendConfig.d.ts +0 -16
- package/state/localBackendConfig.js +0 -15
- package/state/mantaBackendConfig.d.ts +0 -52
- package/state/mantaBackendConfig.js +0 -15
- package/state/ossBackendConfig.d.ts +0 -83
- package/state/ossBackendConfig.js +0 -15
- package/state/pgBackendConfig.d.ts +0 -23
- package/state/pgBackendConfig.js +0 -15
- package/state/remoteBackendConfig.d.ts +0 -44
- package/state/remoteBackendConfig.js +0 -15
- package/state/remoteStateReference.d.ts +0 -46
- package/state/remoteStateReference.js +0 -43
- package/state/s3BackendConfig.d.ts +0 -94
- package/state/s3BackendConfig.js +0 -15
- package/state/swiftBackendConfig.d.ts +0 -85
- package/state/swiftBackendConfig.js +0 -15
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
3
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
4
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
5
|
+
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
16
|
+
function getEnv(...vars) {
|
|
17
|
+
for (const v of vars) {
|
|
18
|
+
const value = process.env[v];
|
|
19
|
+
if (value) {
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
exports.getEnv = getEnv;
|
|
26
|
+
function getEnvBoolean(...vars) {
|
|
27
|
+
const s = getEnv(...vars);
|
|
28
|
+
if (s !== undefined) {
|
|
29
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
30
|
+
// Terraform uses internally when parsing boolean values.
|
|
31
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
41
|
+
function getEnvNumber(...vars) {
|
|
42
|
+
const s = getEnv(...vars);
|
|
43
|
+
if (s !== undefined) {
|
|
44
|
+
const f = parseFloat(s);
|
|
45
|
+
if (!isNaN(f)) {
|
|
46
|
+
return f;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
exports.getEnvNumber = getEnvNumber;
|
|
52
|
+
function getVersion() {
|
|
53
|
+
let version = require('./package.json').version;
|
|
54
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
55
|
+
// If there is a v, strip it off.
|
|
56
|
+
if (version.indexOf('v') === 0) {
|
|
57
|
+
version = version.slice(1);
|
|
58
|
+
}
|
|
59
|
+
return version;
|
|
60
|
+
}
|
|
61
|
+
exports.getVersion = getVersion;
|
|
62
|
+
/** @internal */
|
|
63
|
+
function resourceOptsDefaults() {
|
|
64
|
+
return { version: getVersion() };
|
|
65
|
+
}
|
|
66
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
67
|
+
/** @internal */
|
|
68
|
+
function lazyLoad(exports, props, loadModule) {
|
|
69
|
+
for (let property of props) {
|
|
70
|
+
Object.defineProperty(exports, property, {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return loadModule()[property];
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
101
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|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C,OAAO,CAAC,CAAC,CAAC,kBAAkB;YAC7B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB;gBAC7B,CAAC,CAAC,SAAS,CAAC;QAChB,sGAAsG;QACtG,IAAI,OAAO,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,0BAA0B,OAAO,IAAI;gBAC9E,iFAAiF,CAAC,CAAC;SAC1F;QACD,0CAA0C;QAC1C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;YACvB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC/B;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA;AAxBD,8BAwBC"}
|
package/package.json.bak
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pulumi/terraform",
|
|
3
|
-
"version": "${VERSION}",
|
|
4
|
-
"description": "A Pulumi package for interoperating with infrastructure created with Terraform.",
|
|
5
|
-
"license": "Apache-2.0",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"pulumi",
|
|
8
|
-
"terraform"
|
|
9
|
-
],
|
|
10
|
-
"homepage": "https://pulumi.com",
|
|
11
|
-
"repository": "https://github.com/pulumi/pulumi-terraform",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@pulumi/pulumi": "^3.0.0"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"typescript": "^3.0.0",
|
|
20
|
-
"@types/node": "^17.0.0"
|
|
21
|
-
},
|
|
22
|
-
"pulumi": {
|
|
23
|
-
"resource": true
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* The configuration options for a Terraform Remote State stored in the Artifactory backend.
|
|
4
|
-
*/
|
|
5
|
-
export interface ArtifactoryRemoteStateReferenceArgs {
|
|
6
|
-
/**
|
|
7
|
-
* A constant describing the name of the Terraform backend, used as the discriminant
|
|
8
|
-
* for the union of backend configurations.
|
|
9
|
-
*/
|
|
10
|
-
backendType: "artifactory";
|
|
11
|
-
/**
|
|
12
|
-
* The username with which to authenticate to Artifactory. Sourced from `ARTIFACTORY_USERNAME`
|
|
13
|
-
* in the environment, if unset.
|
|
14
|
-
*/
|
|
15
|
-
username?: pulumi.Input<string>;
|
|
16
|
-
/**
|
|
17
|
-
* The password with which to authenticate to Artifactory. Sourced from `ARTIFACTORY_PASSWORD`
|
|
18
|
-
* in the environment, if unset.
|
|
19
|
-
*/
|
|
20
|
-
password?: pulumi.Input<string>;
|
|
21
|
-
/**
|
|
22
|
-
* The Artifactory URL. Note that this is the base URL to artifactory, not the full repo and
|
|
23
|
-
* subpath. However, it must include the path to the artifactory installation - likely this
|
|
24
|
-
* will end in `/artifactory`. Sourced from `ARTIFACTORY_URL` in the environment, if unset.
|
|
25
|
-
*/
|
|
26
|
-
url?: pulumi.Input<string>;
|
|
27
|
-
/**
|
|
28
|
-
* The repository name.
|
|
29
|
-
*/
|
|
30
|
-
repo: pulumi.Input<string>;
|
|
31
|
-
/**
|
|
32
|
-
* Path within the repository.
|
|
33
|
-
*/
|
|
34
|
-
subpath: pulumi.Input<string>;
|
|
35
|
-
/**
|
|
36
|
-
* The Terraform workspace from which to read state.
|
|
37
|
-
*/
|
|
38
|
-
workspace?: pulumi.Input<string>;
|
|
39
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2019, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
export declare type AzureEnvironment = "public" | "china" | "german" | "stack" | "usgovernment";
|
|
3
|
-
/**
|
|
4
|
-
* The configuration options for a Terraform Remote State stored in the AzureRM backend.
|
|
5
|
-
*/
|
|
6
|
-
export interface AzureRMRemoteStateReferenceArgs {
|
|
7
|
-
/**
|
|
8
|
-
* A constant describing the name of the Terraform backend, used as the discriminant
|
|
9
|
-
* for the union of backend configurations.
|
|
10
|
-
*/
|
|
11
|
-
backendType: "azurerm";
|
|
12
|
-
/**
|
|
13
|
-
* The name of the storage account.
|
|
14
|
-
*/
|
|
15
|
-
storageAccountName: pulumi.Input<string>;
|
|
16
|
-
/**
|
|
17
|
-
* The name of the storage container within the storage account.
|
|
18
|
-
*/
|
|
19
|
-
containerName: pulumi.Input<string>;
|
|
20
|
-
/**
|
|
21
|
-
* The name of the blob in representing the Terraform State file inside the storage container.
|
|
22
|
-
*/
|
|
23
|
-
key?: pulumi.Input<string>;
|
|
24
|
-
/**
|
|
25
|
-
* The Azure environment which should be used. Possible values are `public` (default), `china`,
|
|
26
|
-
* `german`, `stack` and `usgovernment`. Sourced from `ARM_ENVIRONMENT`, if unset.
|
|
27
|
-
*/
|
|
28
|
-
environment?: pulumi.Input<AzureEnvironment>;
|
|
29
|
-
/**
|
|
30
|
-
* The custom endpoint for Azure Resource Manager. Sourced from `ARM_ENDPOINT`, if unset.
|
|
31
|
-
*/
|
|
32
|
-
endpoint?: pulumi.Input<string>;
|
|
33
|
-
/**
|
|
34
|
-
* Whether to authenticate using Managed Service Identity (MSI). Sourced from `ARM_USE_MSI`
|
|
35
|
-
* if unset. Defaults to false if no value is specified.
|
|
36
|
-
*/
|
|
37
|
-
useMsi?: pulumi.Input<boolean>;
|
|
38
|
-
/**
|
|
39
|
-
* The Subscription ID in which the Storage Account exists. Used when authenticating using
|
|
40
|
-
* the Managed Service Identity (MSI) or a service principal. Sourced from `ARM_SUBSCRIPTION_ID`,
|
|
41
|
-
* if unset.
|
|
42
|
-
*/
|
|
43
|
-
subscriptionId?: pulumi.Input<string>;
|
|
44
|
-
/**
|
|
45
|
-
* The Tenant ID in which the Subscription exists. Used when authenticating using the
|
|
46
|
-
* Managed Service Identity (MSI) or a service principal. Sourced from `ARM_TENANT_ID`,
|
|
47
|
-
* if unset.
|
|
48
|
-
*/
|
|
49
|
-
tenantId?: pulumi.Input<string>;
|
|
50
|
-
/**
|
|
51
|
-
* The path to a custom Managed Service Identity endpoint. Used when authenticating using
|
|
52
|
-
* the Managed Service Identity (MSI). Sourced from `ARM_MSI_ENDPOINT` in the environment,
|
|
53
|
-
* if unset. Automatically determined, if no value is provided.
|
|
54
|
-
*/
|
|
55
|
-
msiEndpoint?: pulumi.Input<string>;
|
|
56
|
-
/**
|
|
57
|
-
* The SAS Token used to access the Blob Storage Account. Used when authenticating using
|
|
58
|
-
* a SAS Token. Sourced from `ARM_SAS_TOKEN` in the environment, if unset.
|
|
59
|
-
*/
|
|
60
|
-
sasToken?: pulumi.Input<string>;
|
|
61
|
-
/**
|
|
62
|
-
* The Access Key used to access the blob storage account. Used when authenticating using
|
|
63
|
-
* an access key. Sourced from `ARM_ACCESS_KEY` in the environment, if unset.
|
|
64
|
-
*/
|
|
65
|
-
accessKey?: pulumi.Input<string>;
|
|
66
|
-
/**
|
|
67
|
-
* The name of the resource group in which the storage account exists. Used when authenticating
|
|
68
|
-
* using a service principal.
|
|
69
|
-
*/
|
|
70
|
-
resourceGroupName?: pulumi.Input<string>;
|
|
71
|
-
/**
|
|
72
|
-
* The client ID of the service principal. Used when authenticating using a service principal.
|
|
73
|
-
* Sourced from `ARM_CLIENT_ID` in the environment, if unset.
|
|
74
|
-
*/
|
|
75
|
-
clientId?: pulumi.Input<string>;
|
|
76
|
-
/**
|
|
77
|
-
* The client secret of the service principal. Used when authenticating using a service principal.
|
|
78
|
-
* Sourced from `ARM_CLIENT_SECRET` in the environment, if unset.
|
|
79
|
-
*/
|
|
80
|
-
clientSecret?: pulumi.Input<string>;
|
|
81
|
-
/**
|
|
82
|
-
* The Terraform workspace from which to read state.
|
|
83
|
-
*/
|
|
84
|
-
workspace?: pulumi.Input<string>;
|
|
85
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2019, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* The configuration options for a Terraform Remote State stored in the Consul backend.
|
|
4
|
-
*/
|
|
5
|
-
export interface ConsulRemoteStateReferenceArgs {
|
|
6
|
-
/**
|
|
7
|
-
* A constant describing the name of the Terraform backend, used as the discriminant
|
|
8
|
-
* for the union of backend configurations.
|
|
9
|
-
*/
|
|
10
|
-
backendType: "consul";
|
|
11
|
-
/**
|
|
12
|
-
* Path in the Consul KV store.
|
|
13
|
-
*/
|
|
14
|
-
path: pulumi.Input<string>;
|
|
15
|
-
/**
|
|
16
|
-
* Consul Access Token. Sourced from `CONSUL_HTTP_TOKEN` in the environment, if unset.
|
|
17
|
-
*/
|
|
18
|
-
accessToken: pulumi.Input<string>;
|
|
19
|
-
/**
|
|
20
|
-
* DNS name and port of the Consul HTTP endpoint specified in the format `dnsname:port`. Defaults
|
|
21
|
-
* to the local agent HTTP listener.
|
|
22
|
-
*/
|
|
23
|
-
address?: pulumi.Input<string>;
|
|
24
|
-
/**
|
|
25
|
-
* Specifies which protocol to use when talking to the given address - either `http` or `https`. TLS
|
|
26
|
-
* support can also be enabled by setting the environment variable `CONSUL_HTTP_SSL` to `true`.
|
|
27
|
-
*/
|
|
28
|
-
scheme?: pulumi.Input<string>;
|
|
29
|
-
/**
|
|
30
|
-
* The datacenter to use. Defaults to that of the agent.
|
|
31
|
-
*/
|
|
32
|
-
datacenter?: pulumi.Input<string>;
|
|
33
|
-
/**
|
|
34
|
-
* HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of
|
|
35
|
-
* either `user` or `user:pass`. Sourced from `CONSUL_HTTP_AUTH`, if unset.
|
|
36
|
-
*/
|
|
37
|
-
httpAuth?: pulumi.Input<string>;
|
|
38
|
-
/**
|
|
39
|
-
* Whether to compress the state data using gzip. Set to `true` to compress the state data using gzip,
|
|
40
|
-
* or `false` (default) to leave it uncompressed.
|
|
41
|
-
*/
|
|
42
|
-
gzip?: pulumi.Input<boolean>;
|
|
43
|
-
/**
|
|
44
|
-
* A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. Sourced
|
|
45
|
-
* from `CONSUL_CAFILE` in the environment, if unset.
|
|
46
|
-
*/
|
|
47
|
-
caFile?: pulumi.Input<string>;
|
|
48
|
-
/**
|
|
49
|
-
* A path to a PEM-encoded certificate provided to the remote agent; requires use of key_file. Sourced
|
|
50
|
-
* from `CONSUL_CLIENT_CERT` in the environment, if unset.
|
|
51
|
-
*/
|
|
52
|
-
certFile?: pulumi.Input<string>;
|
|
53
|
-
/**
|
|
54
|
-
* A path to a PEM-encoded private key, required if cert_file is specified. Sourced from `CONSUL_CLIENT_KEY`
|
|
55
|
-
* in the environment, if unset.
|
|
56
|
-
*/
|
|
57
|
-
keyFile?: pulumi.Input<string>;
|
|
58
|
-
/**
|
|
59
|
-
* The Terraform workspace from which to read state.
|
|
60
|
-
*/
|
|
61
|
-
workspace?: pulumi.Input<string>;
|
|
62
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2019, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* The configuration options for a Terraform Remote State stored in the etcd v2 backend. Note
|
|
4
|
-
* that there is a separate configuration class for state stored in the ectd v3 backend.
|
|
5
|
-
*/
|
|
6
|
-
export interface EtcdV2RemoteStateReferenceArgs {
|
|
7
|
-
/**
|
|
8
|
-
* A constant describing the name of the Terraform backend, used as the discriminant
|
|
9
|
-
* for the union of backend configurations.
|
|
10
|
-
*/
|
|
11
|
-
backendType: "etcd";
|
|
12
|
-
/**
|
|
13
|
-
* The path at which to store the state.
|
|
14
|
-
*/
|
|
15
|
-
path: pulumi.Input<string>;
|
|
16
|
-
/**
|
|
17
|
-
* A space-separated list of the etcd endpoints.
|
|
18
|
-
*/
|
|
19
|
-
endpoints: pulumi.Input<string>;
|
|
20
|
-
/**
|
|
21
|
-
* The username with which to authenticate to etcd.
|
|
22
|
-
*/
|
|
23
|
-
username?: pulumi.Input<string>;
|
|
24
|
-
/**
|
|
25
|
-
* The username with which to authenticate to etcd.
|
|
26
|
-
*/
|
|
27
|
-
password?: pulumi.Input<string>;
|
|
28
|
-
/**
|
|
29
|
-
* The Terraform workspace from which to read state.
|
|
30
|
-
*/
|
|
31
|
-
workspace?: pulumi.Input<string>;
|
|
32
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2019, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* The configuration options for a Terraform Remote State stored in the etcd v3 backend. Note
|
|
4
|
-
* that there is a separate configuration class for state stored in the ectd v2 backend.
|
|
5
|
-
*/
|
|
6
|
-
export interface EtcdV3RemoteStateReferenceArgs {
|
|
7
|
-
/**
|
|
8
|
-
* A constant describing the name of the Terraform backend, used as the discriminant
|
|
9
|
-
* for the union of backend configurations.
|
|
10
|
-
*/
|
|
11
|
-
backendType: "etcdv3";
|
|
12
|
-
/**
|
|
13
|
-
* A list of the etcd endpoints.
|
|
14
|
-
*/
|
|
15
|
-
endpoints: pulumi.Input<pulumi.Input<string>[]>;
|
|
16
|
-
/**
|
|
17
|
-
* The username with which to authenticate to etcd. Sourced from `ETCDV3_USERNAME` in
|
|
18
|
-
* the environment, if unset.
|
|
19
|
-
*/
|
|
20
|
-
username?: pulumi.Input<string>;
|
|
21
|
-
/**
|
|
22
|
-
* The username with which to authenticate to etcd. Sourced from `ETCDV3_PASSWORD` in
|
|
23
|
-
* the environment, if unset.
|
|
24
|
-
*/
|
|
25
|
-
password?: pulumi.Input<string>;
|
|
26
|
-
/**
|
|
27
|
-
* An optional prefix to be added to keys when storing state in etcd.
|
|
28
|
-
*/
|
|
29
|
-
prefix?: pulumi.Input<string>;
|
|
30
|
-
/**
|
|
31
|
-
* Path to a PEM-encoded certificate authority bundle with which to verify certificates
|
|
32
|
-
* of TLS-enabled etcd servers.
|
|
33
|
-
*/
|
|
34
|
-
cacertPath?: pulumi.Input<string>;
|
|
35
|
-
/**
|
|
36
|
-
* Path to a PEM-encoded certificate to provide to etcd for client authentication.
|
|
37
|
-
*/
|
|
38
|
-
certPath?: pulumi.Input<string>;
|
|
39
|
-
/**
|
|
40
|
-
* Path to a PEM-encoded key to use for client authentication.
|
|
41
|
-
*/
|
|
42
|
-
keyPath?: pulumi.Input<string>;
|
|
43
|
-
/**
|
|
44
|
-
* The Terraform workspace from which to read state.
|
|
45
|
-
*/
|
|
46
|
-
workspace?: pulumi.Input<string>;
|
|
47
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2019, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* The configuration options for a Terraform Remote State stored in the Google Cloud Storage
|
|
4
|
-
* backend.
|
|
5
|
-
*/
|
|
6
|
-
export interface GCSRemoteStateReferenceArgs {
|
|
7
|
-
/**
|
|
8
|
-
* A constant describing the name of the Terraform backend, used as the discriminant
|
|
9
|
-
* for the union of backend configurations.
|
|
10
|
-
*/
|
|
11
|
-
backendType: "gcs";
|
|
12
|
-
/**
|
|
13
|
-
* The name of the Google Cloud Storage bucket.
|
|
14
|
-
*/
|
|
15
|
-
bucket: pulumi.Input<string>;
|
|
16
|
-
/**
|
|
17
|
-
* Local path to Google Cloud Platform account credentials in JSON format. Sourced from
|
|
18
|
-
* `GOOGLE_CREDENTIALS` in the environment if unset. If no value is provided Google
|
|
19
|
-
* Application Default Credentials are used.
|
|
20
|
-
*/
|
|
21
|
-
credentials?: pulumi.Input<string>;
|
|
22
|
-
/**
|
|
23
|
-
* Prefix used inside the Google Cloud Storage bucket. Named states for workspaces
|
|
24
|
-
* are stored in an object named `<prefix>/<name>.tfstate`.
|
|
25
|
-
*/
|
|
26
|
-
prefix?: pulumi.Input<string>;
|
|
27
|
-
/**
|
|
28
|
-
* A 32 byte, base64-encoded customer supplied encryption key used to encrypt the
|
|
29
|
-
* state. Sourced from `GOOGLE_ENCRYPTION_KEY` in the environment, if unset.
|
|
30
|
-
*/
|
|
31
|
-
encryptionKey?: pulumi.Input<string>;
|
|
32
|
-
/**
|
|
33
|
-
* The Terraform workspace from which to read state.
|
|
34
|
-
*/
|
|
35
|
-
workspace?: pulumi.Input<string>;
|
|
36
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2019, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* The configuration options for a Terraform Remote State stored in the HTTP backend.
|
|
4
|
-
*/
|
|
5
|
-
export interface HttpRemoteStateReferenceArgs {
|
|
6
|
-
/**
|
|
7
|
-
* A constant describing the name of the Terraform backend, used as the discriminant
|
|
8
|
-
* for the union of backend configurations.
|
|
9
|
-
*/
|
|
10
|
-
backendType: "http";
|
|
11
|
-
/**
|
|
12
|
-
* The address of the HTTP endpoint.
|
|
13
|
-
*/
|
|
14
|
-
address: pulumi.Input<string>;
|
|
15
|
-
/**
|
|
16
|
-
* HTTP method to use when updating state. Defaults to `POST`.
|
|
17
|
-
*/
|
|
18
|
-
updateMethod?: pulumi.Input<string>;
|
|
19
|
-
/**
|
|
20
|
-
* The address of the lock REST endpoint. Not setting a value disables locking.
|
|
21
|
-
*/
|
|
22
|
-
lockAddress?: pulumi.Input<string>;
|
|
23
|
-
/**
|
|
24
|
-
* The HTTP method to use when locking. Defaults to `LOCK`.
|
|
25
|
-
*/
|
|
26
|
-
lockMethod?: pulumi.Input<string>;
|
|
27
|
-
/**
|
|
28
|
-
* The address of the unlock REST endpoint. Not setting a value disables locking.
|
|
29
|
-
*/
|
|
30
|
-
unlockAddress?: pulumi.Input<string>;
|
|
31
|
-
/**
|
|
32
|
-
* The HTTP method to use when unlocking. Defaults to `UNLOCK`.
|
|
33
|
-
*/
|
|
34
|
-
unlockMethod?: pulumi.Input<string>;
|
|
35
|
-
/**
|
|
36
|
-
* The username used for HTTP basic authentication.
|
|
37
|
-
*/
|
|
38
|
-
username?: pulumi.Input<string>;
|
|
39
|
-
/**
|
|
40
|
-
* The password used for HTTP basic authentication.
|
|
41
|
-
*/
|
|
42
|
-
password?: pulumi.Input<string>;
|
|
43
|
-
/**
|
|
44
|
-
* Whether to skip TLS verification. Defaults to false.
|
|
45
|
-
*/
|
|
46
|
-
skipCertVerification?: pulumi.Input<boolean>;
|
|
47
|
-
/**
|
|
48
|
-
* The Terraform workspace from which to read state.
|
|
49
|
-
*/
|
|
50
|
-
workspace?: pulumi.Input<string>;
|
|
51
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* The configuration options for a Terraform Remote State stored in the local enhanced
|
|
4
|
-
* backend.
|
|
5
|
-
*/
|
|
6
|
-
export interface LocalBackendRemoteStateReferenceArgs {
|
|
7
|
-
/**
|
|
8
|
-
* A constant describing the name of the Terraform backend, used as the discriminant
|
|
9
|
-
* for the union of backend configurations.
|
|
10
|
-
*/
|
|
11
|
-
backendType: "local";
|
|
12
|
-
/**
|
|
13
|
-
* The path to the Terraform state file.
|
|
14
|
-
*/
|
|
15
|
-
path: pulumi.Input<string>;
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2019, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|