@pulumi/ec 0.5.2-alpha.1691409334 → 0.6.0
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/deployment.d.ts +75 -293
- package/deployment.js +10 -167
- package/deployment.js.map +1 -1
- package/deploymentElasticsearchKeystore.d.ts +27 -24
- package/deploymentElasticsearchKeystore.js +17 -14
- package/deploymentElasticsearchKeystore.js.map +1 -1
- package/deploymentExtension.d.ts +31 -88
- package/deploymentExtension.js +5 -62
- package/deploymentExtension.js.map +1 -1
- package/deploymentTrafficFilter.d.ts +41 -30
- package/deploymentTrafficFilter.js +20 -12
- package/deploymentTrafficFilter.js.map +1 -1
- package/deploymentTrafficFilterAssociation.d.ts +7 -7
- package/deploymentTrafficFilterAssociation.js +1 -1
- package/getAwsPrivatelinkEndpoint.d.ts +7 -8
- package/getAwsPrivatelinkEndpoint.js +4 -8
- package/getAwsPrivatelinkEndpoint.js.map +1 -1
- package/getAzurePrivatelinkEndpoint.d.ts +3 -4
- package/getAzurePrivatelinkEndpoint.js +0 -4
- package/getAzurePrivatelinkEndpoint.js.map +1 -1
- package/getDeployment.d.ts +5 -83
- package/getDeployment.js.map +1 -1
- package/getDeployments.d.ts +75 -85
- package/getDeployments.js +21 -21
- package/getDeployments.js.map +1 -1
- package/getGcpPrivateServiceConnectEndpoint.d.ts +5 -6
- package/getGcpPrivateServiceConnectEndpoint.js +0 -4
- package/getGcpPrivateServiceConnectEndpoint.js.map +1 -1
- package/getStack.d.ts +23 -32
- package/getStack.js +4 -0
- package/getStack.js.map +1 -1
- package/getTrafficFilter.d.ts +99 -0
- package/getTrafficFilter.js +62 -0
- package/getTrafficFilter.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.js +9 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- package/snapshotRepository.d.ts +87 -0
- package/snapshotRepository.js +66 -0
- package/snapshotRepository.js.map +1 -0
- package/types/input.d.ts +317 -353
- package/types/output.d.ts +586 -384
package/deployment.js
CHANGED
|
@@ -7,185 +7,26 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
|
-
* ### Basic
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
-
* import * as ec from "@pulumi/ec";
|
|
11
|
+
* ### Basic
|
|
15
12
|
*
|
|
16
|
-
*
|
|
17
|
-
* versionRegex: "latest",
|
|
18
|
-
* region: "us-east-1",
|
|
19
|
-
* });
|
|
20
|
-
* const exampleMinimal = new ec.Deployment("exampleMinimal", {
|
|
21
|
-
* region: "us-east-1",
|
|
22
|
-
* version: latest.then(latest => latest.version),
|
|
23
|
-
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
24
|
-
* elasticsearch: {},
|
|
25
|
-
* kibana: {},
|
|
26
|
-
* integrationsServer: {},
|
|
27
|
-
* enterpriseSearch: {},
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
* ### Tiered deployment with Autoscaling enabled
|
|
13
|
+
* ### With config
|
|
31
14
|
*
|
|
32
|
-
*
|
|
33
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
-
* import * as ec from "@pulumi/ec";
|
|
15
|
+
* `es.yaml`
|
|
35
16
|
*
|
|
36
|
-
*
|
|
37
|
-
* versionRegex: "latest",
|
|
38
|
-
* region: "us-east-1",
|
|
39
|
-
* });
|
|
40
|
-
* const exampleMinimal = new ec.Deployment("exampleMinimal", {
|
|
41
|
-
* region: "us-east-1",
|
|
42
|
-
* version: latest.then(latest => latest.version),
|
|
43
|
-
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
44
|
-
* elasticsearch: {
|
|
45
|
-
* autoscale: "true",
|
|
46
|
-
* topologies: [
|
|
47
|
-
* {
|
|
48
|
-
* id: "cold",
|
|
49
|
-
* },
|
|
50
|
-
* {
|
|
51
|
-
* id: "frozen",
|
|
52
|
-
* },
|
|
53
|
-
* {
|
|
54
|
-
* id: "hot_content",
|
|
55
|
-
* size: "8g",
|
|
56
|
-
* autoscaling: {
|
|
57
|
-
* maxSize: "128g",
|
|
58
|
-
* maxSizeResource: "memory",
|
|
59
|
-
* },
|
|
60
|
-
* },
|
|
61
|
-
* {
|
|
62
|
-
* id: "ml",
|
|
63
|
-
* },
|
|
64
|
-
* {
|
|
65
|
-
* id: "warm",
|
|
66
|
-
* },
|
|
67
|
-
* ],
|
|
68
|
-
* },
|
|
69
|
-
* kibana: {},
|
|
70
|
-
* integrationsServer: {},
|
|
71
|
-
* enterpriseSearch: {},
|
|
72
|
-
* });
|
|
73
|
-
* ```
|
|
74
|
-
* ### With observability settings
|
|
17
|
+
* `deployment.tf`:
|
|
75
18
|
*
|
|
76
|
-
*
|
|
77
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
78
|
-
* import * as ec from "@pulumi/ec";
|
|
19
|
+
* ### With autoscaling
|
|
79
20
|
*
|
|
80
|
-
*
|
|
81
|
-
* versionRegex: "latest",
|
|
82
|
-
* region: "us-east-1",
|
|
83
|
-
* });
|
|
84
|
-
* const exampleObservability = new ec.Deployment("exampleObservability", {
|
|
85
|
-
* region: "us-east-1",
|
|
86
|
-
* version: latest.then(latest => latest.version),
|
|
87
|
-
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
88
|
-
* elasticsearch: {},
|
|
89
|
-
* kibana: {},
|
|
90
|
-
* observability: {
|
|
91
|
-
* deploymentId: ec_deployment.example_minimal.id,
|
|
92
|
-
* },
|
|
93
|
-
* });
|
|
94
|
-
* ```
|
|
21
|
+
* ### With observability
|
|
95
22
|
*
|
|
96
23
|
* It is possible to enable observability without using a second deployment, by storing the observability data in the current deployment. To enable this, set `deploymentId` to `self`.
|
|
97
|
-
* ```typescript
|
|
98
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
99
|
-
* ```
|
|
100
|
-
* ### With Cross Cluster Search settings
|
|
101
|
-
*
|
|
102
|
-
* ```typescript
|
|
103
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
104
|
-
* import * as ec from "@pulumi/ec";
|
|
105
|
-
*
|
|
106
|
-
* const latest = ec.getStack({
|
|
107
|
-
* versionRegex: "latest",
|
|
108
|
-
* region: "us-east-1",
|
|
109
|
-
* });
|
|
110
|
-
* const sourceDeployment = new ec.Deployment("sourceDeployment", {
|
|
111
|
-
* region: "us-east-1",
|
|
112
|
-
* version: latest.then(latest => latest.version),
|
|
113
|
-
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
114
|
-
* elasticsearch: {
|
|
115
|
-
* topologies: [{
|
|
116
|
-
* id: "hot_content",
|
|
117
|
-
* size: "1g",
|
|
118
|
-
* }],
|
|
119
|
-
* },
|
|
120
|
-
* });
|
|
121
|
-
* const ccs = new ec.Deployment("ccs", {
|
|
122
|
-
* region: "us-east-1",
|
|
123
|
-
* version: latest.then(latest => latest.version),
|
|
124
|
-
* deploymentTemplateId: "aws-cross-cluster-search-v2",
|
|
125
|
-
* elasticsearch: {
|
|
126
|
-
* remoteClusters: [{
|
|
127
|
-
* deploymentId: sourceDeployment.id,
|
|
128
|
-
* alias: sourceDeployment.name,
|
|
129
|
-
* refId: sourceDeployment.elasticsearch.apply(elasticsearch => elasticsearch.refId),
|
|
130
|
-
* }],
|
|
131
|
-
* },
|
|
132
|
-
* kibana: {},
|
|
133
|
-
* });
|
|
134
|
-
* ```
|
|
135
|
-
* ### With tags
|
|
136
24
|
*
|
|
137
|
-
*
|
|
138
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
139
|
-
* import * as ec from "@pulumi/ec";
|
|
140
|
-
*
|
|
141
|
-
* const latest = ec.getStack({
|
|
142
|
-
* versionRegex: "latest",
|
|
143
|
-
* region: "us-east-1",
|
|
144
|
-
* });
|
|
145
|
-
* const withTags = new ec.Deployment("withTags", {
|
|
146
|
-
* region: "us-east-1",
|
|
147
|
-
* version: latest.then(latest => latest.version),
|
|
148
|
-
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
149
|
-
* elasticsearch: {},
|
|
150
|
-
* tags: {
|
|
151
|
-
* owner: "elastic cloud",
|
|
152
|
-
* component: "search",
|
|
153
|
-
* },
|
|
154
|
-
* });
|
|
155
|
-
* ```
|
|
156
|
-
* ### With configuration strategy
|
|
157
|
-
*
|
|
158
|
-
* ```typescript
|
|
159
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
160
|
-
* import * as ec from "@pulumi/ec";
|
|
161
|
-
*
|
|
162
|
-
* const latest = ec.getStack({
|
|
163
|
-
* versionRegex: "latest",
|
|
164
|
-
* region: "us-east-1",
|
|
165
|
-
* });
|
|
166
|
-
* const withTags = new ec.Deployment("withTags", {
|
|
167
|
-
* region: "us-east-1",
|
|
168
|
-
* version: latest.then(latest => latest.version),
|
|
169
|
-
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
170
|
-
* elasticsearch: {
|
|
171
|
-
* strategy: {
|
|
172
|
-
* type: "rolling_all",
|
|
173
|
-
* },
|
|
174
|
-
* },
|
|
175
|
-
* tags: {
|
|
176
|
-
* owner: "elastic cloud",
|
|
177
|
-
* component: "search",
|
|
178
|
-
* },
|
|
179
|
-
* });
|
|
180
|
-
* ```
|
|
25
|
+
* ### With Çross Cluster Search settings
|
|
181
26
|
*
|
|
182
27
|
* ## Import
|
|
183
28
|
*
|
|
184
|
-
* ~> **Note on deployment credentials** The `elastic` user credentials are only available whilst creating a deployment. Importing a deployment will not import the `elasticsearch_username` or `elasticsearch_password` attributes. ~> **Note on legacy (pre-slider) deployments** Importing deployments created prior to the addition of sliders in ECE or ESS, without being migrated to use sliders, is not supported. ~> **Note on pre 6.6.0 deployments** Importing deployments with a version lower than `6.6.0` is not supported. ~> **Note on deployments with topology user settings** Only deployments with global user settings (config) are supported. Make sure to migrate to global settings before importing. Deployments can be imported using the `id`, for example
|
|
185
|
-
*
|
|
186
|
-
* ```sh
|
|
187
|
-
* $ pulumi import ec:index/deployment:Deployment search 320b7b540dfc967a7a649c18e2fce4ed
|
|
188
|
-
* ```
|
|
29
|
+
* ~> **Note on deployment credentials** The `elastic` user credentials are only available whilst creating a deployment. Importing a deployment will not import the `elasticsearch_username` or `elasticsearch_password` attributes. ~> **Note on legacy (pre-slider) deployments** Importing deployments created prior to the addition of sliders in ECE or ESS, without being migrated to use sliders, is not supported. ~> **Note on pre 6.6.0 deployments** Importing deployments with a version lower than `6.6.0` is not supported. ~> **Note on deployments with topology user settings** Only deployments with global user settings (config) are supported. Make sure to migrate to global settings before importing. Deployments can be imported using the `id`, for example: <break><break>```sh<break> $ pulumi import ec:index/deployment:Deployment search 320b7b540dfc967a7a649c18e2fce4ed <break>```<break><break>
|
|
189
30
|
*/
|
|
190
31
|
class Deployment extends pulumi.CustomResource {
|
|
191
32
|
/**
|
|
@@ -229,6 +70,7 @@ class Deployment extends pulumi.CustomResource {
|
|
|
229
70
|
resourceInputs["observability"] = state ? state.observability : undefined;
|
|
230
71
|
resourceInputs["region"] = state ? state.region : undefined;
|
|
231
72
|
resourceInputs["requestId"] = state ? state.requestId : undefined;
|
|
73
|
+
resourceInputs["resetElasticsearchPassword"] = state ? state.resetElasticsearchPassword : undefined;
|
|
232
74
|
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
233
75
|
resourceInputs["trafficFilters"] = state ? state.trafficFilters : undefined;
|
|
234
76
|
resourceInputs["version"] = state ? state.version : undefined;
|
|
@@ -258,6 +100,7 @@ class Deployment extends pulumi.CustomResource {
|
|
|
258
100
|
resourceInputs["observability"] = args ? args.observability : undefined;
|
|
259
101
|
resourceInputs["region"] = args ? args.region : undefined;
|
|
260
102
|
resourceInputs["requestId"] = args ? args.requestId : undefined;
|
|
103
|
+
resourceInputs["resetElasticsearchPassword"] = args ? args.resetElasticsearchPassword : undefined;
|
|
261
104
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
262
105
|
resourceInputs["trafficFilters"] = args ? args.trafficFilters : undefined;
|
|
263
106
|
resourceInputs["version"] = args ? args.version : undefined;
|
package/deployment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment.js","sourceRoot":"","sources":["../deployment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"deployment.js","sourceRoot":"","sources":["../deployment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAqFD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,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
|
-
* These examples show how to use the resource at a basic level, and can be copied. This resource becomes really useful when combined with other data providers, like vault or similar.
|
|
6
|
-
* ### Adding a new keystore setting to your deployment
|
|
4
|
+
* ### Basic
|
|
7
5
|
*
|
|
8
6
|
* ```typescript
|
|
9
7
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
8
|
* import * as ec from "@pulumi/ec";
|
|
9
|
+
* import * as fs from "fs";
|
|
11
10
|
*
|
|
12
11
|
* const latest = ec.getStack({
|
|
13
12
|
* versionRegex: "latest",
|
|
@@ -18,19 +17,22 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
17
|
* region: "us-east-1",
|
|
19
18
|
* version: latest.then(latest => latest.version),
|
|
20
19
|
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
21
|
-
* elasticsearch: {
|
|
20
|
+
* elasticsearch: {
|
|
21
|
+
* hot: {
|
|
22
|
+
* autoscaling: {},
|
|
23
|
+
* },
|
|
24
|
+
* },
|
|
22
25
|
* });
|
|
23
26
|
* // Create the keystore secret entry
|
|
24
|
-
* const
|
|
27
|
+
* const gcsCredential = new ec.DeploymentElasticsearchKeystore("gcsCredential", {
|
|
25
28
|
* deploymentId: exampleKeystore.id,
|
|
26
|
-
* settingName: "
|
|
27
|
-
* value: "
|
|
29
|
+
* settingName: "gcs.client.default.credentials_file",
|
|
30
|
+
* value: fs.readFileSync("service-account-key.json"),
|
|
31
|
+
* asFile: true,
|
|
28
32
|
* });
|
|
29
33
|
* ```
|
|
30
34
|
* ### Adding credentials to use GCS as a snapshot repository
|
|
31
35
|
*
|
|
32
|
-
* For up-to-date documentation on the `settingName`, refer to the [ESS documentation](https://www.elastic.co/guide/en/cloud/current/ec-gcs-snapshotting.html#ec-gcs-service-account-key).
|
|
33
|
-
*
|
|
34
36
|
* ```typescript
|
|
35
37
|
* import * as pulumi from "@pulumi/pulumi";
|
|
36
38
|
* import * as ec from "@pulumi/ec";
|
|
@@ -45,7 +47,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
45
47
|
* region: "us-east-1",
|
|
46
48
|
* version: latest.then(latest => latest.version),
|
|
47
49
|
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
48
|
-
* elasticsearch: {
|
|
50
|
+
* elasticsearch: {
|
|
51
|
+
* hot: {
|
|
52
|
+
* autoscaling: {},
|
|
53
|
+
* },
|
|
54
|
+
* },
|
|
49
55
|
* });
|
|
50
56
|
* // Create the keystore secret entry
|
|
51
57
|
* const gcsCredential = new ec.DeploymentElasticsearchKeystore("gcsCredential", {
|
|
@@ -55,13 +61,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
55
61
|
* asFile: true,
|
|
56
62
|
* });
|
|
57
63
|
* ```
|
|
58
|
-
* ## Attributes reference
|
|
59
|
-
*
|
|
60
|
-
* There are no additional attributes exported by this resource other than the referenced arguments.
|
|
61
64
|
*
|
|
62
65
|
* ## Import
|
|
63
66
|
*
|
|
64
|
-
* This resource cannot be imported
|
|
67
|
+
* This resource cannot be imported
|
|
65
68
|
*/
|
|
66
69
|
export declare class DeploymentElasticsearchKeystore extends pulumi.CustomResource {
|
|
67
70
|
/**
|
|
@@ -80,15 +83,15 @@ export declare class DeploymentElasticsearchKeystore extends pulumi.CustomResour
|
|
|
80
83
|
*/
|
|
81
84
|
static isInstance(obj: any): obj is DeploymentElasticsearchKeystore;
|
|
82
85
|
/**
|
|
83
|
-
*
|
|
86
|
+
* Indicates the the remote keystore setting should be stored as a file. The default is false, which stores the keystore setting as string when value is a plain string.
|
|
84
87
|
*/
|
|
85
|
-
readonly asFile: pulumi.Output<boolean
|
|
88
|
+
readonly asFile: pulumi.Output<boolean>;
|
|
86
89
|
/**
|
|
87
|
-
* Deployment ID of the
|
|
90
|
+
* Deployment ID of the Deployment that holds the Elasticsearch cluster where the keystore setting will be written to.
|
|
88
91
|
*/
|
|
89
92
|
readonly deploymentId: pulumi.Output<string>;
|
|
90
93
|
/**
|
|
91
|
-
*
|
|
94
|
+
* Name for the keystore setting, if the setting already exists in the Elasticsearch cluster, it will be overridden.
|
|
92
95
|
*/
|
|
93
96
|
readonly settingName: pulumi.Output<string>;
|
|
94
97
|
/**
|
|
@@ -109,15 +112,15 @@ export declare class DeploymentElasticsearchKeystore extends pulumi.CustomResour
|
|
|
109
112
|
*/
|
|
110
113
|
export interface DeploymentElasticsearchKeystoreState {
|
|
111
114
|
/**
|
|
112
|
-
*
|
|
115
|
+
* Indicates the the remote keystore setting should be stored as a file. The default is false, which stores the keystore setting as string when value is a plain string.
|
|
113
116
|
*/
|
|
114
117
|
asFile?: pulumi.Input<boolean>;
|
|
115
118
|
/**
|
|
116
|
-
* Deployment ID of the
|
|
119
|
+
* Deployment ID of the Deployment that holds the Elasticsearch cluster where the keystore setting will be written to.
|
|
117
120
|
*/
|
|
118
121
|
deploymentId?: pulumi.Input<string>;
|
|
119
122
|
/**
|
|
120
|
-
*
|
|
123
|
+
* Name for the keystore setting, if the setting already exists in the Elasticsearch cluster, it will be overridden.
|
|
121
124
|
*/
|
|
122
125
|
settingName?: pulumi.Input<string>;
|
|
123
126
|
/**
|
|
@@ -130,15 +133,15 @@ export interface DeploymentElasticsearchKeystoreState {
|
|
|
130
133
|
*/
|
|
131
134
|
export interface DeploymentElasticsearchKeystoreArgs {
|
|
132
135
|
/**
|
|
133
|
-
*
|
|
136
|
+
* Indicates the the remote keystore setting should be stored as a file. The default is false, which stores the keystore setting as string when value is a plain string.
|
|
134
137
|
*/
|
|
135
138
|
asFile?: pulumi.Input<boolean>;
|
|
136
139
|
/**
|
|
137
|
-
* Deployment ID of the
|
|
140
|
+
* Deployment ID of the Deployment that holds the Elasticsearch cluster where the keystore setting will be written to.
|
|
138
141
|
*/
|
|
139
142
|
deploymentId: pulumi.Input<string>;
|
|
140
143
|
/**
|
|
141
|
-
*
|
|
144
|
+
* Name for the keystore setting, if the setting already exists in the Elasticsearch cluster, it will be overridden.
|
|
142
145
|
*/
|
|
143
146
|
settingName: pulumi.Input<string>;
|
|
144
147
|
/**
|
|
@@ -7,13 +7,12 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* These examples show how to use the resource at a basic level, and can be copied. This resource becomes really useful when combined with other data providers, like vault or similar.
|
|
12
|
-
* ### Adding a new keystore setting to your deployment
|
|
10
|
+
* ### Basic
|
|
13
11
|
*
|
|
14
12
|
* ```typescript
|
|
15
13
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
14
|
* import * as ec from "@pulumi/ec";
|
|
15
|
+
* import * as fs from "fs";
|
|
17
16
|
*
|
|
18
17
|
* const latest = ec.getStack({
|
|
19
18
|
* versionRegex: "latest",
|
|
@@ -24,19 +23,22 @@ const utilities = require("./utilities");
|
|
|
24
23
|
* region: "us-east-1",
|
|
25
24
|
* version: latest.then(latest => latest.version),
|
|
26
25
|
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
27
|
-
* elasticsearch: {
|
|
26
|
+
* elasticsearch: {
|
|
27
|
+
* hot: {
|
|
28
|
+
* autoscaling: {},
|
|
29
|
+
* },
|
|
30
|
+
* },
|
|
28
31
|
* });
|
|
29
32
|
* // Create the keystore secret entry
|
|
30
|
-
* const
|
|
33
|
+
* const gcsCredential = new ec.DeploymentElasticsearchKeystore("gcsCredential", {
|
|
31
34
|
* deploymentId: exampleKeystore.id,
|
|
32
|
-
* settingName: "
|
|
33
|
-
* value: "
|
|
35
|
+
* settingName: "gcs.client.default.credentials_file",
|
|
36
|
+
* value: fs.readFileSync("service-account-key.json"),
|
|
37
|
+
* asFile: true,
|
|
34
38
|
* });
|
|
35
39
|
* ```
|
|
36
40
|
* ### Adding credentials to use GCS as a snapshot repository
|
|
37
41
|
*
|
|
38
|
-
* For up-to-date documentation on the `settingName`, refer to the [ESS documentation](https://www.elastic.co/guide/en/cloud/current/ec-gcs-snapshotting.html#ec-gcs-service-account-key).
|
|
39
|
-
*
|
|
40
42
|
* ```typescript
|
|
41
43
|
* import * as pulumi from "@pulumi/pulumi";
|
|
42
44
|
* import * as ec from "@pulumi/ec";
|
|
@@ -51,7 +53,11 @@ const utilities = require("./utilities");
|
|
|
51
53
|
* region: "us-east-1",
|
|
52
54
|
* version: latest.then(latest => latest.version),
|
|
53
55
|
* deploymentTemplateId: "aws-io-optimized-v2",
|
|
54
|
-
* elasticsearch: {
|
|
56
|
+
* elasticsearch: {
|
|
57
|
+
* hot: {
|
|
58
|
+
* autoscaling: {},
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
55
61
|
* });
|
|
56
62
|
* // Create the keystore secret entry
|
|
57
63
|
* const gcsCredential = new ec.DeploymentElasticsearchKeystore("gcsCredential", {
|
|
@@ -61,13 +67,10 @@ const utilities = require("./utilities");
|
|
|
61
67
|
* asFile: true,
|
|
62
68
|
* });
|
|
63
69
|
* ```
|
|
64
|
-
* ## Attributes reference
|
|
65
|
-
*
|
|
66
|
-
* There are no additional attributes exported by this resource other than the referenced arguments.
|
|
67
70
|
*
|
|
68
71
|
* ## Import
|
|
69
72
|
*
|
|
70
|
-
* This resource cannot be imported
|
|
73
|
+
* This resource cannot be imported
|
|
71
74
|
*/
|
|
72
75
|
class DeploymentElasticsearchKeystore extends pulumi.CustomResource {
|
|
73
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploymentElasticsearchKeystore.js","sourceRoot":"","sources":["../deploymentElasticsearchKeystore.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"deploymentElasticsearchKeystore.js","sourceRoot":"","sources":["../deploymentElasticsearchKeystore.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;A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