@ryan-pip/pulumi_astronomer 0.0.7 → 0.0.9
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 +6 -2
- package/config/vars.js +3 -1
- package/config/vars.js.map +1 -1
- package/package.json +4 -4
- package/package.json.bak +3 -3
- package/provider.js +2 -1
- package/provider.js.map +1 -1
- package/utilities.js +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Astronomer Resource Provider
|
|
2
2
|
|
|
3
|
-
The Astronomer Resource Provider lets you manage [astronomer](https://www.pulumi.com/registry/packages/astronomer/) resources
|
|
3
|
+
The Astronomer Resource Provider lets you manage [astronomer](https://www.pulumi.com/registry/packages/astronomer/) resources as
|
|
4
|
+
part of the [Astronomer Cloud](https://www.astronomer.io/).
|
|
5
|
+
|
|
6
|
+
This provider is a bridged version of the [terraform provider](https://registry.terraform.io/providers/GK-Consulting/astronomer/latest/docs/resources/workspace). The
|
|
7
|
+
majority of the credit needs to go to the original [authors](https://github.com/GK-Consulting/terraform-provider-astronomer) of the terraform provider.
|
|
4
8
|
|
|
5
9
|
## Installing
|
|
6
10
|
|
|
@@ -33,7 +37,7 @@ pip install pulumi-astronomer
|
|
|
33
37
|
To use from Go, use `go get` to grab the latest version of the library:
|
|
34
38
|
|
|
35
39
|
```bash
|
|
36
|
-
go get github.com/ryan
|
|
40
|
+
go get github.com/ryan-pip/pulumi-astronomer/sdk/go/...
|
|
37
41
|
```
|
|
38
42
|
|
|
39
43
|
### .NET (ToD0)
|
package/config/vars.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("../utilities");
|
|
6
7
|
const __config = new pulumi.Config("astronomer");
|
|
7
8
|
Object.defineProperty(exports, "organizationId", {
|
|
8
9
|
get() {
|
|
@@ -12,7 +13,8 @@ Object.defineProperty(exports, "organizationId", {
|
|
|
12
13
|
});
|
|
13
14
|
Object.defineProperty(exports, "token", {
|
|
14
15
|
get() {
|
|
15
|
-
|
|
16
|
+
var _a;
|
|
17
|
+
return (_a = __config.get("token")) !== null && _a !== void 0 ? _a : utilities.getEnv("ASTRONOMER_API_TOKEN");
|
|
16
18
|
},
|
|
17
19
|
enumerable: true,
|
|
18
20
|
});
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,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,MAAA,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAC7E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ryan-pip/pulumi_astronomer",
|
|
3
|
-
"version": "v0.0.
|
|
3
|
+
"version": "v0.0.9",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Astronomer Cloud resources. Based on terraform-provider-astronomer: version v0.3.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
7
7
|
"astronomer",
|
|
8
8
|
"category/infrastructure"
|
|
9
9
|
],
|
|
10
|
-
"homepage": "https://github.com/ryan
|
|
11
|
-
"repository": "https://github.com/ryan
|
|
10
|
+
"homepage": "https://github.com/ryan-pip/pulumi-astronomer",
|
|
11
|
+
"repository": "https://github.com/ryan-pip/pulumi-astronomer",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc"
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "astronomer",
|
|
27
|
-
"server": "github://api.github.com/ryan
|
|
27
|
+
"server": "github://api.github.com/ryan-pip/pulumi-astronomer"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/package.json.bak
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"astronomer",
|
|
8
8
|
"category/infrastructure"
|
|
9
9
|
],
|
|
10
|
-
"homepage": "https://github.com/ryan
|
|
11
|
-
"repository": "https://github.com/ryan
|
|
10
|
+
"homepage": "https://github.com/ryan-pip/pulumi-astronomer",
|
|
11
|
+
"repository": "https://github.com/ryan-pip/pulumi-astronomer",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc"
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "astronomer",
|
|
27
|
-
"server": "github://api.github.com/ryan
|
|
27
|
+
"server": "github://api.github.com/ryan-pip/pulumi-astronomer"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/provider.js
CHANGED
|
@@ -30,6 +30,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
30
30
|
* @param opts A bag of options that control this resource's behavior.
|
|
31
31
|
*/
|
|
32
32
|
constructor(name, args, opts) {
|
|
33
|
+
var _a;
|
|
33
34
|
let resourceInputs = {};
|
|
34
35
|
opts = opts || {};
|
|
35
36
|
{
|
|
@@ -37,7 +38,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
37
38
|
throw new Error("Missing required property 'organizationId'");
|
|
38
39
|
}
|
|
39
40
|
resourceInputs["organizationId"] = args ? args.organizationId : undefined;
|
|
40
|
-
resourceInputs["token"] = (args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined;
|
|
41
|
+
resourceInputs["token"] = (_a = ((args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnv("ASTRONOMER_API_TOKEN");
|
|
41
42
|
}
|
|
42
43
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
43
44
|
const secretOpts = { additionalSecretOutputs: ["token"] };
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAWD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCA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CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA7CL,4BA8CC;AA7CG,gBAAgB;AACO,qBAAY,GAAG,YAAY,CAAC"}
|
package/utilities.js
CHANGED
|
@@ -61,7 +61,7 @@ function getVersion() {
|
|
|
61
61
|
exports.getVersion = getVersion;
|
|
62
62
|
/** @internal */
|
|
63
63
|
function resourceOptsDefaults() {
|
|
64
|
-
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/ryan
|
|
64
|
+
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/ryan-pip/pulumi-astronomer" };
|
|
65
65
|
}
|
|
66
66
|
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
67
67
|
/** @internal */
|