@ryan-pip/pulumi_astronomer 0.0.6
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/LICENSE +202 -0
- package/README.md +49 -0
- package/cluster.d.ts +254 -0
- package/cluster.js +120 -0
- package/cluster.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +8 -0
- package/config/vars.js +19 -0
- package/config/vars.js.map +1 -0
- package/deployment.d.ts +289 -0
- package/deployment.js +125 -0
- package/deployment.js.map +1 -0
- package/getCluster.d.ts +127 -0
- package/getCluster.js +47 -0
- package/getCluster.js.map +1 -0
- package/getDeployment.d.ts +64 -0
- package/getDeployment.js +25 -0
- package/getDeployment.js.map +1 -0
- package/getOrganization.d.ts +105 -0
- package/getOrganization.js +48 -0
- package/getOrganization.js.map +1 -0
- package/getWorkspace.d.ts +70 -0
- package/getWorkspace.js +47 -0
- package/getWorkspace.js.map +1 -0
- package/index.d.ts +27 -0
- package/index.js +60 -0
- package/index.js.map +1 -0
- package/package.json +29 -0
- package/package.json.bak +29 -0
- package/provider.d.ts +43 -0
- package/provider.js +51 -0
- package/provider.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 +56 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +95 -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/workspace.d.ts +87 -0
- package/workspace.js +68 -0
- package/workspace.js.map +1 -0
package/config/vars.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const __config = new pulumi.Config("astronomer");
|
|
7
|
+
Object.defineProperty(exports, "organizationId", {
|
|
8
|
+
get() {
|
|
9
|
+
return __config.get("organizationId");
|
|
10
|
+
},
|
|
11
|
+
enumerable: true,
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "token", {
|
|
14
|
+
get() {
|
|
15
|
+
return __config.get("token");
|
|
16
|
+
},
|
|
17
|
+
enumerable: true,
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAMjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE;IAC7C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC1C,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE;IACpC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/deployment.d.ts
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* An Astro Deployment is an Airflow environment that is powered by all core Airflow components.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Deployment extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing Deployment resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DeploymentState, opts?: pulumi.CustomResourceOptions): Deployment;
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if the given object is an instance of Deployment. This is designed to work even
|
|
20
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
21
|
+
*/
|
|
22
|
+
static isInstance(obj: any): obj is Deployment;
|
|
23
|
+
/**
|
|
24
|
+
* Deployment's Astro Runtime version.
|
|
25
|
+
*/
|
|
26
|
+
readonly astroRuntimeVersion: pulumi.Output<string | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* The cloud provider for the Deployment's cluster. Optional if `ClusterId` is specified.
|
|
29
|
+
*/
|
|
30
|
+
readonly cloudProvider: pulumi.Output<string>;
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the cluster where the Deployment will be created.
|
|
33
|
+
*/
|
|
34
|
+
readonly clusterId: pulumi.Output<string | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* The default CPU resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in number of CPU cores.
|
|
37
|
+
*/
|
|
38
|
+
readonly defaultTaskPodCpu: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* The default memory resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in `Gi`. This value must always be twice the value of `DefaultTaskPodCpu`.
|
|
41
|
+
*/
|
|
42
|
+
readonly defaultTaskPodMemory: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The Deployment's description.
|
|
45
|
+
*/
|
|
46
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* List of environment variables to add to the Deployment.
|
|
49
|
+
*/
|
|
50
|
+
readonly environmentVariables: pulumi.Output<outputs.DeploymentEnvironmentVariable[] | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The Deployment's executor type.
|
|
53
|
+
*/
|
|
54
|
+
readonly executor: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the Deployment requires that all deploys are made through CI/CD.
|
|
57
|
+
*/
|
|
58
|
+
readonly isCicdEnforced: pulumi.Output<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the Deployment has DAG deploys enabled.
|
|
61
|
+
*/
|
|
62
|
+
readonly isDagDeployEnabled: pulumi.Output<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the Deployment is configured for high availability. If `true`, multiple scheduler pods will be online.
|
|
65
|
+
*/
|
|
66
|
+
readonly isHighAvailability: pulumi.Output<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* The Deployment's name.
|
|
69
|
+
*/
|
|
70
|
+
readonly name: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The region to host the Deployment in. Optional if `ClusterId` is specified.
|
|
73
|
+
*/
|
|
74
|
+
readonly region: pulumi.Output<string | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* The CPU quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current CPU usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in number of CPU cores.
|
|
77
|
+
*/
|
|
78
|
+
readonly resourceQuotaCpu: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The memory quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current memory usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in `Gi`. This value must always be twice the value of `ResourceQuotaCpu`.
|
|
81
|
+
*/
|
|
82
|
+
readonly resourceQuotaMemory: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The size of the scheduler pod.
|
|
85
|
+
*/
|
|
86
|
+
readonly schedulerSize: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The node pool ID for the task pods. For KUBERNETES executor only.
|
|
89
|
+
*/
|
|
90
|
+
readonly taskPodNodePoolId: pulumi.Output<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* The type of the Deployment.
|
|
93
|
+
*/
|
|
94
|
+
readonly type: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The list of worker queues configured for the Deployment. Applies only when `Executor` is `CELERY`. At least 1 worker queue is needed. All Deployments need at least 1 worker queue called `default`.
|
|
97
|
+
*/
|
|
98
|
+
readonly workerQueues: pulumi.Output<outputs.DeploymentWorkerQueue[] | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* The Deployment's workload identity.
|
|
101
|
+
*/
|
|
102
|
+
readonly workloadIdentity: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The ID of the workspace to which the Deployment belongs.
|
|
105
|
+
*/
|
|
106
|
+
readonly workspaceId: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Create a Deployment resource with the given unique name, arguments, and options.
|
|
109
|
+
*
|
|
110
|
+
* @param name The _unique_ name of the resource.
|
|
111
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
112
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
113
|
+
*/
|
|
114
|
+
constructor(name: string, args: DeploymentArgs, opts?: pulumi.CustomResourceOptions);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Input properties used for looking up and filtering Deployment resources.
|
|
118
|
+
*/
|
|
119
|
+
export interface DeploymentState {
|
|
120
|
+
/**
|
|
121
|
+
* Deployment's Astro Runtime version.
|
|
122
|
+
*/
|
|
123
|
+
astroRuntimeVersion?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The cloud provider for the Deployment's cluster. Optional if `ClusterId` is specified.
|
|
126
|
+
*/
|
|
127
|
+
cloudProvider?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The ID of the cluster where the Deployment will be created.
|
|
130
|
+
*/
|
|
131
|
+
clusterId?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The default CPU resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in number of CPU cores.
|
|
134
|
+
*/
|
|
135
|
+
defaultTaskPodCpu?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* The default memory resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in `Gi`. This value must always be twice the value of `DefaultTaskPodCpu`.
|
|
138
|
+
*/
|
|
139
|
+
defaultTaskPodMemory?: pulumi.Input<string>;
|
|
140
|
+
/**
|
|
141
|
+
* The Deployment's description.
|
|
142
|
+
*/
|
|
143
|
+
description?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* List of environment variables to add to the Deployment.
|
|
146
|
+
*/
|
|
147
|
+
environmentVariables?: pulumi.Input<pulumi.Input<inputs.DeploymentEnvironmentVariable>[]>;
|
|
148
|
+
/**
|
|
149
|
+
* The Deployment's executor type.
|
|
150
|
+
*/
|
|
151
|
+
executor?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* Whether the Deployment requires that all deploys are made through CI/CD.
|
|
154
|
+
*/
|
|
155
|
+
isCicdEnforced?: pulumi.Input<boolean>;
|
|
156
|
+
/**
|
|
157
|
+
* Whether the Deployment has DAG deploys enabled.
|
|
158
|
+
*/
|
|
159
|
+
isDagDeployEnabled?: pulumi.Input<boolean>;
|
|
160
|
+
/**
|
|
161
|
+
* Whether the Deployment is configured for high availability. If `true`, multiple scheduler pods will be online.
|
|
162
|
+
*/
|
|
163
|
+
isHighAvailability?: pulumi.Input<boolean>;
|
|
164
|
+
/**
|
|
165
|
+
* The Deployment's name.
|
|
166
|
+
*/
|
|
167
|
+
name?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* The region to host the Deployment in. Optional if `ClusterId` is specified.
|
|
170
|
+
*/
|
|
171
|
+
region?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* The CPU quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current CPU usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in number of CPU cores.
|
|
174
|
+
*/
|
|
175
|
+
resourceQuotaCpu?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* The memory quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current memory usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in `Gi`. This value must always be twice the value of `ResourceQuotaCpu`.
|
|
178
|
+
*/
|
|
179
|
+
resourceQuotaMemory?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* The size of the scheduler pod.
|
|
182
|
+
*/
|
|
183
|
+
schedulerSize?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The node pool ID for the task pods. For KUBERNETES executor only.
|
|
186
|
+
*/
|
|
187
|
+
taskPodNodePoolId?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* The type of the Deployment.
|
|
190
|
+
*/
|
|
191
|
+
type?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* The list of worker queues configured for the Deployment. Applies only when `Executor` is `CELERY`. At least 1 worker queue is needed. All Deployments need at least 1 worker queue called `default`.
|
|
194
|
+
*/
|
|
195
|
+
workerQueues?: pulumi.Input<pulumi.Input<inputs.DeploymentWorkerQueue>[]>;
|
|
196
|
+
/**
|
|
197
|
+
* The Deployment's workload identity.
|
|
198
|
+
*/
|
|
199
|
+
workloadIdentity?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* The ID of the workspace to which the Deployment belongs.
|
|
202
|
+
*/
|
|
203
|
+
workspaceId?: pulumi.Input<string>;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* The set of arguments for constructing a Deployment resource.
|
|
207
|
+
*/
|
|
208
|
+
export interface DeploymentArgs {
|
|
209
|
+
/**
|
|
210
|
+
* Deployment's Astro Runtime version.
|
|
211
|
+
*/
|
|
212
|
+
astroRuntimeVersion?: pulumi.Input<string>;
|
|
213
|
+
/**
|
|
214
|
+
* The cloud provider for the Deployment's cluster. Optional if `ClusterId` is specified.
|
|
215
|
+
*/
|
|
216
|
+
cloudProvider?: pulumi.Input<string>;
|
|
217
|
+
/**
|
|
218
|
+
* The ID of the cluster where the Deployment will be created.
|
|
219
|
+
*/
|
|
220
|
+
clusterId?: pulumi.Input<string>;
|
|
221
|
+
/**
|
|
222
|
+
* The default CPU resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in number of CPU cores.
|
|
223
|
+
*/
|
|
224
|
+
defaultTaskPodCpu: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* The default memory resource usage for a worker Pod when running the Kubernetes executor or KubernetesPodOperator. Units are in `Gi`. This value must always be twice the value of `DefaultTaskPodCpu`.
|
|
227
|
+
*/
|
|
228
|
+
defaultTaskPodMemory: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* The Deployment's description.
|
|
231
|
+
*/
|
|
232
|
+
description?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* List of environment variables to add to the Deployment.
|
|
235
|
+
*/
|
|
236
|
+
environmentVariables?: pulumi.Input<pulumi.Input<inputs.DeploymentEnvironmentVariable>[]>;
|
|
237
|
+
/**
|
|
238
|
+
* The Deployment's executor type.
|
|
239
|
+
*/
|
|
240
|
+
executor: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* Whether the Deployment requires that all deploys are made through CI/CD.
|
|
243
|
+
*/
|
|
244
|
+
isCicdEnforced: pulumi.Input<boolean>;
|
|
245
|
+
/**
|
|
246
|
+
* Whether the Deployment has DAG deploys enabled.
|
|
247
|
+
*/
|
|
248
|
+
isDagDeployEnabled: pulumi.Input<boolean>;
|
|
249
|
+
/**
|
|
250
|
+
* Whether the Deployment is configured for high availability. If `true`, multiple scheduler pods will be online.
|
|
251
|
+
*/
|
|
252
|
+
isHighAvailability: pulumi.Input<boolean>;
|
|
253
|
+
/**
|
|
254
|
+
* The Deployment's name.
|
|
255
|
+
*/
|
|
256
|
+
name?: pulumi.Input<string>;
|
|
257
|
+
/**
|
|
258
|
+
* The region to host the Deployment in. Optional if `ClusterId` is specified.
|
|
259
|
+
*/
|
|
260
|
+
region?: pulumi.Input<string>;
|
|
261
|
+
/**
|
|
262
|
+
* The CPU quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current CPU usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in number of CPU cores.
|
|
263
|
+
*/
|
|
264
|
+
resourceQuotaCpu: pulumi.Input<string>;
|
|
265
|
+
/**
|
|
266
|
+
* The memory quota for worker Pods when running the Kubernetes executor or KubernetesPodOperator. If current memory usage across all workers exceeds the quota, no new worker Pods can be scheduled. Units are in `Gi`. This value must always be twice the value of `ResourceQuotaCpu`.
|
|
267
|
+
*/
|
|
268
|
+
resourceQuotaMemory: pulumi.Input<string>;
|
|
269
|
+
/**
|
|
270
|
+
* The size of the scheduler pod.
|
|
271
|
+
*/
|
|
272
|
+
schedulerSize: pulumi.Input<string>;
|
|
273
|
+
/**
|
|
274
|
+
* The node pool ID for the task pods. For KUBERNETES executor only.
|
|
275
|
+
*/
|
|
276
|
+
taskPodNodePoolId?: pulumi.Input<string>;
|
|
277
|
+
/**
|
|
278
|
+
* The type of the Deployment.
|
|
279
|
+
*/
|
|
280
|
+
type: pulumi.Input<string>;
|
|
281
|
+
/**
|
|
282
|
+
* The list of worker queues configured for the Deployment. Applies only when `Executor` is `CELERY`. At least 1 worker queue is needed. All Deployments need at least 1 worker queue called `default`.
|
|
283
|
+
*/
|
|
284
|
+
workerQueues?: pulumi.Input<pulumi.Input<inputs.DeploymentWorkerQueue>[]>;
|
|
285
|
+
/**
|
|
286
|
+
* The ID of the workspace to which the Deployment belongs.
|
|
287
|
+
*/
|
|
288
|
+
workspaceId: pulumi.Input<string>;
|
|
289
|
+
}
|
package/deployment.js
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Deployment = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* An Astro Deployment is an Airflow environment that is powered by all core Airflow components.
|
|
10
|
+
*/
|
|
11
|
+
class Deployment extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing Deployment resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name, id, state, opts) {
|
|
22
|
+
return new Deployment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Deployment. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj) {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === Deployment.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
constructor(name, argsOrState, opts) {
|
|
35
|
+
let resourceInputs = {};
|
|
36
|
+
opts = opts || {};
|
|
37
|
+
if (opts.id) {
|
|
38
|
+
const state = argsOrState;
|
|
39
|
+
resourceInputs["astroRuntimeVersion"] = state ? state.astroRuntimeVersion : undefined;
|
|
40
|
+
resourceInputs["cloudProvider"] = state ? state.cloudProvider : undefined;
|
|
41
|
+
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
42
|
+
resourceInputs["defaultTaskPodCpu"] = state ? state.defaultTaskPodCpu : undefined;
|
|
43
|
+
resourceInputs["defaultTaskPodMemory"] = state ? state.defaultTaskPodMemory : undefined;
|
|
44
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
45
|
+
resourceInputs["environmentVariables"] = state ? state.environmentVariables : undefined;
|
|
46
|
+
resourceInputs["executor"] = state ? state.executor : undefined;
|
|
47
|
+
resourceInputs["isCicdEnforced"] = state ? state.isCicdEnforced : undefined;
|
|
48
|
+
resourceInputs["isDagDeployEnabled"] = state ? state.isDagDeployEnabled : undefined;
|
|
49
|
+
resourceInputs["isHighAvailability"] = state ? state.isHighAvailability : undefined;
|
|
50
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
51
|
+
resourceInputs["region"] = state ? state.region : undefined;
|
|
52
|
+
resourceInputs["resourceQuotaCpu"] = state ? state.resourceQuotaCpu : undefined;
|
|
53
|
+
resourceInputs["resourceQuotaMemory"] = state ? state.resourceQuotaMemory : undefined;
|
|
54
|
+
resourceInputs["schedulerSize"] = state ? state.schedulerSize : undefined;
|
|
55
|
+
resourceInputs["taskPodNodePoolId"] = state ? state.taskPodNodePoolId : undefined;
|
|
56
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
57
|
+
resourceInputs["workerQueues"] = state ? state.workerQueues : undefined;
|
|
58
|
+
resourceInputs["workloadIdentity"] = state ? state.workloadIdentity : undefined;
|
|
59
|
+
resourceInputs["workspaceId"] = state ? state.workspaceId : undefined;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
const args = argsOrState;
|
|
63
|
+
if ((!args || args.defaultTaskPodCpu === undefined) && !opts.urn) {
|
|
64
|
+
throw new Error("Missing required property 'defaultTaskPodCpu'");
|
|
65
|
+
}
|
|
66
|
+
if ((!args || args.defaultTaskPodMemory === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'defaultTaskPodMemory'");
|
|
68
|
+
}
|
|
69
|
+
if ((!args || args.executor === undefined) && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'executor'");
|
|
71
|
+
}
|
|
72
|
+
if ((!args || args.isCicdEnforced === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'isCicdEnforced'");
|
|
74
|
+
}
|
|
75
|
+
if ((!args || args.isDagDeployEnabled === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'isDagDeployEnabled'");
|
|
77
|
+
}
|
|
78
|
+
if ((!args || args.isHighAvailability === undefined) && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'isHighAvailability'");
|
|
80
|
+
}
|
|
81
|
+
if ((!args || args.resourceQuotaCpu === undefined) && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'resourceQuotaCpu'");
|
|
83
|
+
}
|
|
84
|
+
if ((!args || args.resourceQuotaMemory === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'resourceQuotaMemory'");
|
|
86
|
+
}
|
|
87
|
+
if ((!args || args.schedulerSize === undefined) && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'schedulerSize'");
|
|
89
|
+
}
|
|
90
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'type'");
|
|
92
|
+
}
|
|
93
|
+
if ((!args || args.workspaceId === undefined) && !opts.urn) {
|
|
94
|
+
throw new Error("Missing required property 'workspaceId'");
|
|
95
|
+
}
|
|
96
|
+
resourceInputs["astroRuntimeVersion"] = args ? args.astroRuntimeVersion : undefined;
|
|
97
|
+
resourceInputs["cloudProvider"] = args ? args.cloudProvider : undefined;
|
|
98
|
+
resourceInputs["clusterId"] = args ? args.clusterId : undefined;
|
|
99
|
+
resourceInputs["defaultTaskPodCpu"] = args ? args.defaultTaskPodCpu : undefined;
|
|
100
|
+
resourceInputs["defaultTaskPodMemory"] = args ? args.defaultTaskPodMemory : undefined;
|
|
101
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
102
|
+
resourceInputs["environmentVariables"] = args ? args.environmentVariables : undefined;
|
|
103
|
+
resourceInputs["executor"] = args ? args.executor : undefined;
|
|
104
|
+
resourceInputs["isCicdEnforced"] = args ? args.isCicdEnforced : undefined;
|
|
105
|
+
resourceInputs["isDagDeployEnabled"] = args ? args.isDagDeployEnabled : undefined;
|
|
106
|
+
resourceInputs["isHighAvailability"] = args ? args.isHighAvailability : undefined;
|
|
107
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
108
|
+
resourceInputs["region"] = args ? args.region : undefined;
|
|
109
|
+
resourceInputs["resourceQuotaCpu"] = args ? args.resourceQuotaCpu : undefined;
|
|
110
|
+
resourceInputs["resourceQuotaMemory"] = args ? args.resourceQuotaMemory : undefined;
|
|
111
|
+
resourceInputs["schedulerSize"] = args ? args.schedulerSize : undefined;
|
|
112
|
+
resourceInputs["taskPodNodePoolId"] = args ? args.taskPodNodePoolId : undefined;
|
|
113
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
114
|
+
resourceInputs["workerQueues"] = args ? args.workerQueues : undefined;
|
|
115
|
+
resourceInputs["workspaceId"] = args ? args.workspaceId : undefined;
|
|
116
|
+
resourceInputs["workloadIdentity"] = undefined /*out*/;
|
|
117
|
+
}
|
|
118
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
119
|
+
super(Deployment.__pulumiType, name, resourceInputs, opts);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.Deployment = Deployment;
|
|
123
|
+
/** @internal */
|
|
124
|
+
Deployment.__pulumiType = 'astronomer:index/deployment:Deployment';
|
|
125
|
+
//# sourceMappingURL=deployment.js.map
|
|
@@ -0,0 +1 @@
|
|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AAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA9ML,gCA+MC;AAjMG,gBAAgB;AACO,uBAAY,GAAG,wCAAwC,CAAC"}
|
package/getCluster.d.ts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Astronomer Cluster Data Source
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
11
|
+
*
|
|
12
|
+
* const importedCluster = astronomer.getCluster({
|
|
13
|
+
* id: "clqoclq8201pp01p0cbt77feb",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking getCluster.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetClusterArgs {
|
|
22
|
+
/**
|
|
23
|
+
* The cluster's identifier.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A collection of values returned by getCluster.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetClusterResult {
|
|
31
|
+
/**
|
|
32
|
+
* The cluster's cloud provider.
|
|
33
|
+
*/
|
|
34
|
+
readonly cloudProvider: string;
|
|
35
|
+
/**
|
|
36
|
+
* The type of database instance that is used for the cluster. Required for Hybrid clusters.
|
|
37
|
+
*/
|
|
38
|
+
readonly dbInstanceType: string;
|
|
39
|
+
/**
|
|
40
|
+
* The cluster's identifier.
|
|
41
|
+
*/
|
|
42
|
+
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the cluster is limited.
|
|
45
|
+
*/
|
|
46
|
+
readonly isLimited: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The Kubernetes tags in the cluster.
|
|
49
|
+
*/
|
|
50
|
+
readonly k8sTags: outputs.GetClusterK8sTag[];
|
|
51
|
+
/**
|
|
52
|
+
* The cluster's metadata.
|
|
53
|
+
*/
|
|
54
|
+
readonly metadata: outputs.GetClusterMetadata;
|
|
55
|
+
/**
|
|
56
|
+
* The cluster's name.
|
|
57
|
+
*/
|
|
58
|
+
readonly name: string;
|
|
59
|
+
/**
|
|
60
|
+
* The list of node pools to create in the cluster.
|
|
61
|
+
*/
|
|
62
|
+
readonly nodePools: outputs.GetClusterNodePool[];
|
|
63
|
+
/**
|
|
64
|
+
* The organization this cluster is associated with.
|
|
65
|
+
*/
|
|
66
|
+
readonly organizationId: string;
|
|
67
|
+
/**
|
|
68
|
+
* The subnet range for Pods. For GCP clusters only.
|
|
69
|
+
*/
|
|
70
|
+
readonly podSubnetRange: string;
|
|
71
|
+
/**
|
|
72
|
+
* The provider account ID. Required for Hybrid clusters.
|
|
73
|
+
*/
|
|
74
|
+
readonly providerAccount: string;
|
|
75
|
+
/**
|
|
76
|
+
* The cluster's region.
|
|
77
|
+
*/
|
|
78
|
+
readonly region: string;
|
|
79
|
+
/**
|
|
80
|
+
* The service peering range. For GCP clusters only.
|
|
81
|
+
*/
|
|
82
|
+
readonly servicePeeringRange: string;
|
|
83
|
+
/**
|
|
84
|
+
* The service subnet range. For GCP clusters only.
|
|
85
|
+
*/
|
|
86
|
+
readonly serviceSubnetRange: string;
|
|
87
|
+
/**
|
|
88
|
+
* The tenant ID. For Azure clusters only.
|
|
89
|
+
*/
|
|
90
|
+
readonly tenantId: string;
|
|
91
|
+
/**
|
|
92
|
+
* The cluster's type.
|
|
93
|
+
*/
|
|
94
|
+
readonly type: string;
|
|
95
|
+
/**
|
|
96
|
+
* The VPC subnet range.
|
|
97
|
+
*/
|
|
98
|
+
readonly vpcSubnetRange: string;
|
|
99
|
+
/**
|
|
100
|
+
* The list of Workspaces that are authorized to the cluster.
|
|
101
|
+
*/
|
|
102
|
+
readonly workspaceIds: string[];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Astronomer Cluster Data Source
|
|
106
|
+
*
|
|
107
|
+
* ## Example Usage
|
|
108
|
+
*
|
|
109
|
+
* ```typescript
|
|
110
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
111
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
112
|
+
*
|
|
113
|
+
* const importedCluster = astronomer.getCluster({
|
|
114
|
+
* id: "clqoclq8201pp01p0cbt77feb",
|
|
115
|
+
* });
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterResult>;
|
|
119
|
+
/**
|
|
120
|
+
* A collection of arguments for invoking getCluster.
|
|
121
|
+
*/
|
|
122
|
+
export interface GetClusterOutputArgs {
|
|
123
|
+
/**
|
|
124
|
+
* The cluster's identifier.
|
|
125
|
+
*/
|
|
126
|
+
id: pulumi.Input<string>;
|
|
127
|
+
}
|
package/getCluster.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getClusterOutput = exports.getCluster = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Astronomer Cluster Data Source
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
16
|
+
*
|
|
17
|
+
* const importedCluster = astronomer.getCluster({
|
|
18
|
+
* id: "clqoclq8201pp01p0cbt77feb",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getCluster(args, opts) {
|
|
23
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
24
|
+
return pulumi.runtime.invoke("astronomer:index/getCluster:getCluster", {
|
|
25
|
+
"id": args.id,
|
|
26
|
+
}, opts);
|
|
27
|
+
}
|
|
28
|
+
exports.getCluster = getCluster;
|
|
29
|
+
/**
|
|
30
|
+
* Astronomer Cluster Data Source
|
|
31
|
+
*
|
|
32
|
+
* ## Example Usage
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
37
|
+
*
|
|
38
|
+
* const importedCluster = astronomer.getCluster({
|
|
39
|
+
* id: "clqoclq8201pp01p0cbt77feb",
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
function getClusterOutput(args, opts) {
|
|
44
|
+
return pulumi.output(args).apply((a) => getCluster(a, opts));
|
|
45
|
+
}
|
|
46
|
+
exports.getClusterOutput = getClusterOutput;
|
|
47
|
+
//# sourceMappingURL=getCluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAyFD;;;;;;;;;;;;;GAaG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|