@pulumi/consul 3.13.2 → 3.13.3
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/aclPolicy.d.ts +2 -2
- package/aclPolicy.js +2 -2
- package/aclToken.d.ts +4 -4
- package/aclToken.js +4 -4
- package/catalogEntry.d.ts +20 -0
- package/catalogEntry.js +20 -0
- package/catalogEntry.js.map +1 -1
- package/configEntryServiceDefaults.d.ts +27 -0
- package/configEntryServiceDefaults.js +27 -0
- package/configEntryServiceDefaults.js.map +1 -1
- package/getCatalogNodes.d.ts +46 -0
- package/getCatalogNodes.js +46 -0
- package/getCatalogNodes.js.map +1 -1
- package/getDatacenters.d.ts +80 -0
- package/getDatacenters.js +80 -0
- package/getDatacenters.js.map +1 -1
- package/getNodes.d.ts +46 -0
- package/getNodes.js +46 -0
- package/getNodes.js.map +1 -1
- package/package.json +2 -2
package/aclPolicy.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* const test = new consul.AclPolicy("test", {
|
|
12
12
|
* name: "my_policy",
|
|
13
13
|
* datacenters: ["dc1"],
|
|
14
|
-
* rules: `node_prefix "" {
|
|
15
|
-
* policy = "read"
|
|
14
|
+
* rules: `node_prefix \\"\\" {
|
|
15
|
+
* policy = \\"read\\"
|
|
16
16
|
* }
|
|
17
17
|
* `,
|
|
18
18
|
* });
|
package/aclPolicy.js
CHANGED
|
@@ -17,8 +17,8 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* const test = new consul.AclPolicy("test", {
|
|
18
18
|
* name: "my_policy",
|
|
19
19
|
* datacenters: ["dc1"],
|
|
20
|
-
* rules: `node_prefix "" {
|
|
21
|
-
* policy = "read"
|
|
20
|
+
* rules: `node_prefix \\"\\" {
|
|
21
|
+
* policy = \\"read\\"
|
|
22
22
|
* }
|
|
23
23
|
* `,
|
|
24
24
|
* });
|
package/aclToken.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ import * as outputs from "./types/output";
|
|
|
12
12
|
* // Basic usage
|
|
13
13
|
* const agent = new consul.AclPolicy("agent", {
|
|
14
14
|
* name: "agent",
|
|
15
|
-
* rules: `node_prefix "" {
|
|
16
|
-
* policy = "read"
|
|
15
|
+
* rules: `node_prefix \\"\\" {
|
|
16
|
+
* policy = \\"read\\"
|
|
17
17
|
* }
|
|
18
18
|
* `,
|
|
19
19
|
* });
|
|
@@ -23,9 +23,9 @@ import * as outputs from "./types/output";
|
|
|
23
23
|
* local: true,
|
|
24
24
|
* });
|
|
25
25
|
* // Explicitly set the `accessor_id`
|
|
26
|
-
* const
|
|
26
|
+
* const testUuid = new random.index.Uuid("test", {});
|
|
27
27
|
* const testPredefinedId = new consul.AclToken("test_predefined_id", {
|
|
28
|
-
* accessorId:
|
|
28
|
+
* accessorId: testUuidRandomUuid.result,
|
|
29
29
|
* description: "my test uuid token",
|
|
30
30
|
* policies: [agent.name],
|
|
31
31
|
* local: true,
|
package/aclToken.js
CHANGED
|
@@ -16,8 +16,8 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* // Basic usage
|
|
17
17
|
* const agent = new consul.AclPolicy("agent", {
|
|
18
18
|
* name: "agent",
|
|
19
|
-
* rules: `node_prefix "" {
|
|
20
|
-
* policy = "read"
|
|
19
|
+
* rules: `node_prefix \\"\\" {
|
|
20
|
+
* policy = \\"read\\"
|
|
21
21
|
* }
|
|
22
22
|
* `,
|
|
23
23
|
* });
|
|
@@ -27,9 +27,9 @@ const utilities = require("./utilities");
|
|
|
27
27
|
* local: true,
|
|
28
28
|
* });
|
|
29
29
|
* // Explicitly set the `accessor_id`
|
|
30
|
-
* const
|
|
30
|
+
* const testUuid = new random.index.Uuid("test", {});
|
|
31
31
|
* const testPredefinedId = new consul.AclToken("test_predefined_id", {
|
|
32
|
-
* accessorId:
|
|
32
|
+
* accessorId: testUuidRandomUuid.result,
|
|
33
33
|
* description: "my test uuid token",
|
|
34
34
|
* policies: [agent.name],
|
|
35
35
|
* local: true,
|
package/catalogEntry.d.ts
CHANGED
|
@@ -10,6 +10,26 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
* Currently, defining health checks is not supported.
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as consul from "@pulumi/consul";
|
|
17
|
+
*
|
|
18
|
+
* const app = new consul.CatalogEntry("app", {
|
|
19
|
+
* address: "192.168.10.10",
|
|
20
|
+
* node: "foobar",
|
|
21
|
+
* services: {
|
|
22
|
+
* address: "127.0.0.1",
|
|
23
|
+
* id: "redis1",
|
|
24
|
+
* name: "redis",
|
|
25
|
+
* port: 8000,
|
|
26
|
+
* tags: [
|
|
27
|
+
* "master",
|
|
28
|
+
* "v1",
|
|
29
|
+
* ],
|
|
30
|
+
* },
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
13
33
|
*/
|
|
14
34
|
export declare class CatalogEntry extends pulumi.CustomResource {
|
|
15
35
|
/**
|
package/catalogEntry.js
CHANGED
|
@@ -14,6 +14,26 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* Currently, defining health checks is not supported.
|
|
15
15
|
*
|
|
16
16
|
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as consul from "@pulumi/consul";
|
|
21
|
+
*
|
|
22
|
+
* const app = new consul.CatalogEntry("app", {
|
|
23
|
+
* address: "192.168.10.10",
|
|
24
|
+
* node: "foobar",
|
|
25
|
+
* services: {
|
|
26
|
+
* address: "127.0.0.1",
|
|
27
|
+
* id: "redis1",
|
|
28
|
+
* name: "redis",
|
|
29
|
+
* port: 8000,
|
|
30
|
+
* tags: [
|
|
31
|
+
* "master",
|
|
32
|
+
* "v1",
|
|
33
|
+
* ],
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
17
37
|
*/
|
|
18
38
|
class CatalogEntry extends pulumi.CustomResource {
|
|
19
39
|
/**
|
package/catalogEntry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogEntry.js","sourceRoot":"","sources":["../catalogEntry.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"catalogEntry.js","sourceRoot":"","sources":["../catalogEntry.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAsCD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,YAAY,CAAC,GAA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EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA5FL,oCA6FC;AA/EG,gBAAgB;AACO,yBAAY,GAAG,wCAAwC,CAAC"}
|
|
@@ -3,6 +3,33 @@ import * as inputs from "./types/input";
|
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
5
|
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as consul from "@pulumi/consul";
|
|
10
|
+
*
|
|
11
|
+
* const dashboard = new consul.ConfigEntryServiceDefaults("dashboard", {
|
|
12
|
+
* name: "dashboard",
|
|
13
|
+
* upstreamConfigs: [{
|
|
14
|
+
* defaults: {
|
|
15
|
+
* meshGateways: {
|
|
16
|
+
* mode: "local",
|
|
17
|
+
* },
|
|
18
|
+
* limits: {
|
|
19
|
+
* maxConnections: 512,
|
|
20
|
+
* maxPendingRequests: 512,
|
|
21
|
+
* maxConcurrentRequests: 512,
|
|
22
|
+
* },
|
|
23
|
+
* },
|
|
24
|
+
* overrides: [{
|
|
25
|
+
* name: "counting",
|
|
26
|
+
* meshGateways: [{
|
|
27
|
+
* mode: "remote",
|
|
28
|
+
* }],
|
|
29
|
+
* }],
|
|
30
|
+
* }],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
6
33
|
*/
|
|
7
34
|
export declare class ConfigEntryServiceDefaults extends pulumi.CustomResource {
|
|
8
35
|
/**
|
|
@@ -7,6 +7,33 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as consul from "@pulumi/consul";
|
|
14
|
+
*
|
|
15
|
+
* const dashboard = new consul.ConfigEntryServiceDefaults("dashboard", {
|
|
16
|
+
* name: "dashboard",
|
|
17
|
+
* upstreamConfigs: [{
|
|
18
|
+
* defaults: {
|
|
19
|
+
* meshGateways: {
|
|
20
|
+
* mode: "local",
|
|
21
|
+
* },
|
|
22
|
+
* limits: {
|
|
23
|
+
* maxConnections: 512,
|
|
24
|
+
* maxPendingRequests: 512,
|
|
25
|
+
* maxConcurrentRequests: 512,
|
|
26
|
+
* },
|
|
27
|
+
* },
|
|
28
|
+
* overrides: [{
|
|
29
|
+
* name: "counting",
|
|
30
|
+
* meshGateways: [{
|
|
31
|
+
* mode: "remote",
|
|
32
|
+
* }],
|
|
33
|
+
* }],
|
|
34
|
+
* }],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
10
37
|
*/
|
|
11
38
|
class ConfigEntryServiceDefaults extends pulumi.CustomResource {
|
|
12
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configEntryServiceDefaults.js","sourceRoot":"","sources":["../configEntryServiceDefaults.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"configEntryServiceDefaults.js","sourceRoot":"","sources":["../configEntryServiceDefaults.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG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,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AAjKL,gEAkKC;AApJG,gBAAgB;AACO,uCAAY,GAAG,oEAAoE,CAAC"}
|
package/getCatalogNodes.d.ts
CHANGED
|
@@ -6,6 +6,29 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
7
7
|
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
8
8
|
* nodes from a different WAN-attached Consul datacenter.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as consul from "@pulumi/consul";
|
|
15
|
+
* import * as example from "@pulumi/example";
|
|
16
|
+
* import * as std from "@pulumi/std";
|
|
17
|
+
*
|
|
18
|
+
* const read_dc1_nodes = consul.getNodes({
|
|
19
|
+
* queryOptions: [{
|
|
20
|
+
* datacenter: "dc1",
|
|
21
|
+
* }],
|
|
22
|
+
* });
|
|
23
|
+
* // Set the description to a whitespace delimited list of the node names
|
|
24
|
+
* const app = new example.index.Resource("app", {description: std.join({
|
|
25
|
+
* separator: " ",
|
|
26
|
+
* input: std.formatlist({
|
|
27
|
+
* input: "%s",
|
|
28
|
+
* args: [nodeNames],
|
|
29
|
+
* }).result,
|
|
30
|
+
* }).result});
|
|
31
|
+
* ```
|
|
9
32
|
*/
|
|
10
33
|
/** @deprecated getCatalogNodes has been deprecated in favor of getNodes */
|
|
11
34
|
export declare function getCatalogNodes(args?: GetCatalogNodesArgs, opts?: pulumi.InvokeOptions): Promise<GetCatalogNodesResult>;
|
|
@@ -50,6 +73,29 @@ export interface GetCatalogNodesResult {
|
|
|
50
73
|
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
51
74
|
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
52
75
|
* nodes from a different WAN-attached Consul datacenter.
|
|
76
|
+
*
|
|
77
|
+
* ## Example Usage
|
|
78
|
+
*
|
|
79
|
+
* ```typescript
|
|
80
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
81
|
+
* import * as consul from "@pulumi/consul";
|
|
82
|
+
* import * as example from "@pulumi/example";
|
|
83
|
+
* import * as std from "@pulumi/std";
|
|
84
|
+
*
|
|
85
|
+
* const read_dc1_nodes = consul.getNodes({
|
|
86
|
+
* queryOptions: [{
|
|
87
|
+
* datacenter: "dc1",
|
|
88
|
+
* }],
|
|
89
|
+
* });
|
|
90
|
+
* // Set the description to a whitespace delimited list of the node names
|
|
91
|
+
* const app = new example.index.Resource("app", {description: std.join({
|
|
92
|
+
* separator: " ",
|
|
93
|
+
* input: std.formatlist({
|
|
94
|
+
* input: "%s",
|
|
95
|
+
* args: [nodeNames],
|
|
96
|
+
* }).result,
|
|
97
|
+
* }).result});
|
|
98
|
+
* ```
|
|
53
99
|
*/
|
|
54
100
|
/** @deprecated getCatalogNodes has been deprecated in favor of getNodes */
|
|
55
101
|
export declare function getCatalogNodesOutput(args?: GetCatalogNodesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCatalogNodesResult>;
|
package/getCatalogNodes.js
CHANGED
|
@@ -10,6 +10,29 @@ const utilities = require("./utilities");
|
|
|
10
10
|
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
11
11
|
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
12
12
|
* nodes from a different WAN-attached Consul datacenter.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as consul from "@pulumi/consul";
|
|
19
|
+
* import * as example from "@pulumi/example";
|
|
20
|
+
* import * as std from "@pulumi/std";
|
|
21
|
+
*
|
|
22
|
+
* const read_dc1_nodes = consul.getNodes({
|
|
23
|
+
* queryOptions: [{
|
|
24
|
+
* datacenter: "dc1",
|
|
25
|
+
* }],
|
|
26
|
+
* });
|
|
27
|
+
* // Set the description to a whitespace delimited list of the node names
|
|
28
|
+
* const app = new example.index.Resource("app", {description: std.join({
|
|
29
|
+
* separator: " ",
|
|
30
|
+
* input: std.formatlist({
|
|
31
|
+
* input: "%s",
|
|
32
|
+
* args: [nodeNames],
|
|
33
|
+
* }).result,
|
|
34
|
+
* }).result});
|
|
35
|
+
* ```
|
|
13
36
|
*/
|
|
14
37
|
/** @deprecated getCatalogNodes has been deprecated in favor of getNodes */
|
|
15
38
|
function getCatalogNodes(args, opts) {
|
|
@@ -26,6 +49,29 @@ exports.getCatalogNodes = getCatalogNodes;
|
|
|
26
49
|
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
27
50
|
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
28
51
|
* nodes from a different WAN-attached Consul datacenter.
|
|
52
|
+
*
|
|
53
|
+
* ## Example Usage
|
|
54
|
+
*
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
57
|
+
* import * as consul from "@pulumi/consul";
|
|
58
|
+
* import * as example from "@pulumi/example";
|
|
59
|
+
* import * as std from "@pulumi/std";
|
|
60
|
+
*
|
|
61
|
+
* const read_dc1_nodes = consul.getNodes({
|
|
62
|
+
* queryOptions: [{
|
|
63
|
+
* datacenter: "dc1",
|
|
64
|
+
* }],
|
|
65
|
+
* });
|
|
66
|
+
* // Set the description to a whitespace delimited list of the node names
|
|
67
|
+
* const app = new example.index.Resource("app", {description: std.join({
|
|
68
|
+
* separator: " ",
|
|
69
|
+
* input: std.formatlist({
|
|
70
|
+
* input: "%s",
|
|
71
|
+
* args: [nodeNames],
|
|
72
|
+
* }).result,
|
|
73
|
+
* }).result});
|
|
74
|
+
* ```
|
|
29
75
|
*/
|
|
30
76
|
/** @deprecated getCatalogNodes has been deprecated in favor of getNodes */
|
|
31
77
|
function getCatalogNodesOutput(args, opts) {
|
package/getCatalogNodes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCatalogNodes.js","sourceRoot":"","sources":["../getCatalogNodes.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getCatalogNodes.js","sourceRoot":"","sources":["../getCatalogNodes.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,2EAA2E;AAC3E,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,yFAAyF,CAAC,CAAA;IAC1G,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AAuCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,2EAA2E;AAC3E,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAAiC;IACrG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,yFAAyF,CAAC,CAAA;IAC1G,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8CAA8C,EAAE;QAC/E,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC"}
|
package/getDatacenters.d.ts
CHANGED
|
@@ -2,6 +2,46 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* The `consul.getDatacenters` data source returns the list of all knwown Consul
|
|
4
4
|
* datacenters.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as consul from "@pulumi/consul";
|
|
11
|
+
* import * as std from "@pulumi/std";
|
|
12
|
+
*
|
|
13
|
+
* export = async () => {
|
|
14
|
+
* const all = await consul.getDatacenters({});
|
|
15
|
+
* // Register a prepared query in each of the datacenters
|
|
16
|
+
* const myapp_query: consul.PreparedQuery[] = [];
|
|
17
|
+
* for (const range of std.toset({
|
|
18
|
+
* input: all.datacenters,
|
|
19
|
+
* }).result.map((v, k) => ({key: k, value: v}))) {
|
|
20
|
+
* myapp_query.push(new consul.PreparedQuery(`myapp-query-${range.key}`, {
|
|
21
|
+
* name: "myquery",
|
|
22
|
+
* datacenter: range.key,
|
|
23
|
+
* onlyPassing: true,
|
|
24
|
+
* near: "_agent",
|
|
25
|
+
* service: "myapp",
|
|
26
|
+
* tags: [
|
|
27
|
+
* "active",
|
|
28
|
+
* "!standby",
|
|
29
|
+
* ],
|
|
30
|
+
* failover: {
|
|
31
|
+
* nearestN: 3,
|
|
32
|
+
* datacenters: [
|
|
33
|
+
* "us-west1",
|
|
34
|
+
* "us-east-2",
|
|
35
|
+
* "asia-east1",
|
|
36
|
+
* ],
|
|
37
|
+
* },
|
|
38
|
+
* dns: {
|
|
39
|
+
* ttl: "30s",
|
|
40
|
+
* },
|
|
41
|
+
* }));
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
5
45
|
*/
|
|
6
46
|
export declare function getDatacenters(opts?: pulumi.InvokeOptions): Promise<GetDatacentersResult>;
|
|
7
47
|
/**
|
|
@@ -22,5 +62,45 @@ export interface GetDatacentersResult {
|
|
|
22
62
|
/**
|
|
23
63
|
* The `consul.getDatacenters` data source returns the list of all knwown Consul
|
|
24
64
|
* datacenters.
|
|
65
|
+
*
|
|
66
|
+
* ## Example Usage
|
|
67
|
+
*
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
+
* import * as consul from "@pulumi/consul";
|
|
71
|
+
* import * as std from "@pulumi/std";
|
|
72
|
+
*
|
|
73
|
+
* export = async () => {
|
|
74
|
+
* const all = await consul.getDatacenters({});
|
|
75
|
+
* // Register a prepared query in each of the datacenters
|
|
76
|
+
* const myapp_query: consul.PreparedQuery[] = [];
|
|
77
|
+
* for (const range of std.toset({
|
|
78
|
+
* input: all.datacenters,
|
|
79
|
+
* }).result.map((v, k) => ({key: k, value: v}))) {
|
|
80
|
+
* myapp_query.push(new consul.PreparedQuery(`myapp-query-${range.key}`, {
|
|
81
|
+
* name: "myquery",
|
|
82
|
+
* datacenter: range.key,
|
|
83
|
+
* onlyPassing: true,
|
|
84
|
+
* near: "_agent",
|
|
85
|
+
* service: "myapp",
|
|
86
|
+
* tags: [
|
|
87
|
+
* "active",
|
|
88
|
+
* "!standby",
|
|
89
|
+
* ],
|
|
90
|
+
* failover: {
|
|
91
|
+
* nearestN: 3,
|
|
92
|
+
* datacenters: [
|
|
93
|
+
* "us-west1",
|
|
94
|
+
* "us-east-2",
|
|
95
|
+
* "asia-east1",
|
|
96
|
+
* ],
|
|
97
|
+
* },
|
|
98
|
+
* dns: {
|
|
99
|
+
* ttl: "30s",
|
|
100
|
+
* },
|
|
101
|
+
* }));
|
|
102
|
+
* }
|
|
103
|
+
* }
|
|
104
|
+
* ```
|
|
25
105
|
*/
|
|
26
106
|
export declare function getDatacentersOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatacentersResult>;
|
package/getDatacenters.js
CHANGED
|
@@ -8,6 +8,46 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* The `consul.getDatacenters` data source returns the list of all knwown Consul
|
|
10
10
|
* datacenters.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as consul from "@pulumi/consul";
|
|
17
|
+
* import * as std from "@pulumi/std";
|
|
18
|
+
*
|
|
19
|
+
* export = async () => {
|
|
20
|
+
* const all = await consul.getDatacenters({});
|
|
21
|
+
* // Register a prepared query in each of the datacenters
|
|
22
|
+
* const myapp_query: consul.PreparedQuery[] = [];
|
|
23
|
+
* for (const range of std.toset({
|
|
24
|
+
* input: all.datacenters,
|
|
25
|
+
* }).result.map((v, k) => ({key: k, value: v}))) {
|
|
26
|
+
* myapp_query.push(new consul.PreparedQuery(`myapp-query-${range.key}`, {
|
|
27
|
+
* name: "myquery",
|
|
28
|
+
* datacenter: range.key,
|
|
29
|
+
* onlyPassing: true,
|
|
30
|
+
* near: "_agent",
|
|
31
|
+
* service: "myapp",
|
|
32
|
+
* tags: [
|
|
33
|
+
* "active",
|
|
34
|
+
* "!standby",
|
|
35
|
+
* ],
|
|
36
|
+
* failover: {
|
|
37
|
+
* nearestN: 3,
|
|
38
|
+
* datacenters: [
|
|
39
|
+
* "us-west1",
|
|
40
|
+
* "us-east-2",
|
|
41
|
+
* "asia-east1",
|
|
42
|
+
* ],
|
|
43
|
+
* },
|
|
44
|
+
* dns: {
|
|
45
|
+
* ttl: "30s",
|
|
46
|
+
* },
|
|
47
|
+
* }));
|
|
48
|
+
* }
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
11
51
|
*/
|
|
12
52
|
function getDatacenters(opts) {
|
|
13
53
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -17,6 +57,46 @@ exports.getDatacenters = getDatacenters;
|
|
|
17
57
|
/**
|
|
18
58
|
* The `consul.getDatacenters` data source returns the list of all knwown Consul
|
|
19
59
|
* datacenters.
|
|
60
|
+
*
|
|
61
|
+
* ## Example Usage
|
|
62
|
+
*
|
|
63
|
+
* ```typescript
|
|
64
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
+
* import * as consul from "@pulumi/consul";
|
|
66
|
+
* import * as std from "@pulumi/std";
|
|
67
|
+
*
|
|
68
|
+
* export = async () => {
|
|
69
|
+
* const all = await consul.getDatacenters({});
|
|
70
|
+
* // Register a prepared query in each of the datacenters
|
|
71
|
+
* const myapp_query: consul.PreparedQuery[] = [];
|
|
72
|
+
* for (const range of std.toset({
|
|
73
|
+
* input: all.datacenters,
|
|
74
|
+
* }).result.map((v, k) => ({key: k, value: v}))) {
|
|
75
|
+
* myapp_query.push(new consul.PreparedQuery(`myapp-query-${range.key}`, {
|
|
76
|
+
* name: "myquery",
|
|
77
|
+
* datacenter: range.key,
|
|
78
|
+
* onlyPassing: true,
|
|
79
|
+
* near: "_agent",
|
|
80
|
+
* service: "myapp",
|
|
81
|
+
* tags: [
|
|
82
|
+
* "active",
|
|
83
|
+
* "!standby",
|
|
84
|
+
* ],
|
|
85
|
+
* failover: {
|
|
86
|
+
* nearestN: 3,
|
|
87
|
+
* datacenters: [
|
|
88
|
+
* "us-west1",
|
|
89
|
+
* "us-east-2",
|
|
90
|
+
* "asia-east1",
|
|
91
|
+
* ],
|
|
92
|
+
* },
|
|
93
|
+
* dns: {
|
|
94
|
+
* ttl: "30s",
|
|
95
|
+
* },
|
|
96
|
+
* }));
|
|
97
|
+
* }
|
|
98
|
+
* }
|
|
99
|
+
* ```
|
|
20
100
|
*/
|
|
21
101
|
function getDatacentersOutput(opts) {
|
|
22
102
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
package/getDatacenters.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,SAAgB,cAAc,CAAC,IAA2B;IACtD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE,EAC1E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wCAIC;AAiBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,SAAgB,oBAAoB,CAAC,IAAiC;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4CAA4C,EAAE,EAChF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oDAIC"}
|
package/getNodes.d.ts
CHANGED
|
@@ -6,6 +6,29 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
7
7
|
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
8
8
|
* nodes from a different WAN-attached Consul datacenter.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as consul from "@pulumi/consul";
|
|
15
|
+
* import * as example from "@pulumi/example";
|
|
16
|
+
* import * as std from "@pulumi/std";
|
|
17
|
+
*
|
|
18
|
+
* const read_dc1_nodes = consul.getNodes({
|
|
19
|
+
* queryOptions: [{
|
|
20
|
+
* datacenter: "dc1",
|
|
21
|
+
* }],
|
|
22
|
+
* });
|
|
23
|
+
* // Set the description to a whitespace delimited list of the node names
|
|
24
|
+
* const app = new example.index.Resource("app", {description: std.join({
|
|
25
|
+
* separator: " ",
|
|
26
|
+
* input: std.formatlist({
|
|
27
|
+
* input: "%s",
|
|
28
|
+
* args: [nodeNames],
|
|
29
|
+
* }).result,
|
|
30
|
+
* }).result});
|
|
31
|
+
* ```
|
|
9
32
|
*/
|
|
10
33
|
export declare function getNodes(args?: GetNodesArgs, opts?: pulumi.InvokeOptions): Promise<GetNodesResult>;
|
|
11
34
|
/**
|
|
@@ -49,6 +72,29 @@ export interface GetNodesResult {
|
|
|
49
72
|
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
50
73
|
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
51
74
|
* nodes from a different WAN-attached Consul datacenter.
|
|
75
|
+
*
|
|
76
|
+
* ## Example Usage
|
|
77
|
+
*
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
80
|
+
* import * as consul from "@pulumi/consul";
|
|
81
|
+
* import * as example from "@pulumi/example";
|
|
82
|
+
* import * as std from "@pulumi/std";
|
|
83
|
+
*
|
|
84
|
+
* const read_dc1_nodes = consul.getNodes({
|
|
85
|
+
* queryOptions: [{
|
|
86
|
+
* datacenter: "dc1",
|
|
87
|
+
* }],
|
|
88
|
+
* });
|
|
89
|
+
* // Set the description to a whitespace delimited list of the node names
|
|
90
|
+
* const app = new example.index.Resource("app", {description: std.join({
|
|
91
|
+
* separator: " ",
|
|
92
|
+
* input: std.formatlist({
|
|
93
|
+
* input: "%s",
|
|
94
|
+
* args: [nodeNames],
|
|
95
|
+
* }).result,
|
|
96
|
+
* }).result});
|
|
97
|
+
* ```
|
|
52
98
|
*/
|
|
53
99
|
export declare function getNodesOutput(args?: GetNodesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodesResult>;
|
|
54
100
|
/**
|
package/getNodes.js
CHANGED
|
@@ -10,6 +10,29 @@ const utilities = require("./utilities");
|
|
|
10
10
|
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
11
11
|
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
12
12
|
* nodes from a different WAN-attached Consul datacenter.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as consul from "@pulumi/consul";
|
|
19
|
+
* import * as example from "@pulumi/example";
|
|
20
|
+
* import * as std from "@pulumi/std";
|
|
21
|
+
*
|
|
22
|
+
* const read_dc1_nodes = consul.getNodes({
|
|
23
|
+
* queryOptions: [{
|
|
24
|
+
* datacenter: "dc1",
|
|
25
|
+
* }],
|
|
26
|
+
* });
|
|
27
|
+
* // Set the description to a whitespace delimited list of the node names
|
|
28
|
+
* const app = new example.index.Resource("app", {description: std.join({
|
|
29
|
+
* separator: " ",
|
|
30
|
+
* input: std.formatlist({
|
|
31
|
+
* input: "%s",
|
|
32
|
+
* args: [nodeNames],
|
|
33
|
+
* }).result,
|
|
34
|
+
* }).result});
|
|
35
|
+
* ```
|
|
13
36
|
*/
|
|
14
37
|
function getNodes(args, opts) {
|
|
15
38
|
args = args || {};
|
|
@@ -24,6 +47,29 @@ exports.getNodes = getNodes;
|
|
|
24
47
|
* been registered with the Consul cluster in a given datacenter. By specifying a
|
|
25
48
|
* different datacenter in the `queryOptions` it is possible to retrieve a list of
|
|
26
49
|
* nodes from a different WAN-attached Consul datacenter.
|
|
50
|
+
*
|
|
51
|
+
* ## Example Usage
|
|
52
|
+
*
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as consul from "@pulumi/consul";
|
|
56
|
+
* import * as example from "@pulumi/example";
|
|
57
|
+
* import * as std from "@pulumi/std";
|
|
58
|
+
*
|
|
59
|
+
* const read_dc1_nodes = consul.getNodes({
|
|
60
|
+
* queryOptions: [{
|
|
61
|
+
* datacenter: "dc1",
|
|
62
|
+
* }],
|
|
63
|
+
* });
|
|
64
|
+
* // Set the description to a whitespace delimited list of the node names
|
|
65
|
+
* const app = new example.index.Resource("app", {description: std.join({
|
|
66
|
+
* separator: " ",
|
|
67
|
+
* input: std.formatlist({
|
|
68
|
+
* input: "%s",
|
|
69
|
+
* args: [nodeNames],
|
|
70
|
+
* }).result,
|
|
71
|
+
* }).result});
|
|
72
|
+
* ```
|
|
27
73
|
*/
|
|
28
74
|
function getNodesOutput(args, opts) {
|
|
29
75
|
args = args || {};
|
package/getNodes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../getNodes.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../getNodes.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4BAMC;AAuCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAAiC;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gCAAgC,EAAE;QACjE,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,wCAMC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/consul",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.3",
|
|
4
4
|
"description": "A Pulumi package for creating and managing consul resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "consul",
|
|
26
|
-
"version": "3.13.
|
|
26
|
+
"version": "3.13.3"
|
|
27
27
|
}
|
|
28
28
|
}
|