@cloudyskysoftware/pulumi-render 0.0.31

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.
Files changed (55) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +197 -0
  3. package/config/index.d.ts +1 -0
  4. package/config/index.js +21 -0
  5. package/config/index.js.map +1 -0
  6. package/config/vars.d.ts +9 -0
  7. package/config/vars.js +19 -0
  8. package/config/vars.js.map +1 -0
  9. package/index.d.ts +5 -0
  10. package/index.js +41 -0
  11. package/index.js.map +1 -0
  12. package/package.json +38 -0
  13. package/provider.d.ts +28 -0
  14. package/provider.js +43 -0
  15. package/provider.js.map +1 -0
  16. package/scripts/install-pulumi-plugin.js +26 -0
  17. package/services/customDomain.d.ts +40 -0
  18. package/services/customDomain.js +71 -0
  19. package/services/customDomain.js.map +1 -0
  20. package/services/deploy.d.ts +34 -0
  21. package/services/deploy.js +56 -0
  22. package/services/deploy.js.map +1 -0
  23. package/services/index.d.ts +7 -0
  24. package/services/index.js +59 -0
  25. package/services/index.js.map +1 -0
  26. package/services/scale.d.ts +32 -0
  27. package/services/scale.js +56 -0
  28. package/services/scale.js.map +1 -0
  29. package/services/staticSite.d.ts +101 -0
  30. package/services/staticSite.js +102 -0
  31. package/services/staticSite.js.map +1 -0
  32. package/services/suspend.d.ts +30 -0
  33. package/services/suspend.js +51 -0
  34. package/services/suspend.js.map +1 -0
  35. package/services/webService.d.ts +90 -0
  36. package/services/webService.js +91 -0
  37. package/services/webService.js.map +1 -0
  38. package/types/enums/index.d.ts +2 -0
  39. package/types/enums/index.js +9 -0
  40. package/types/enums/index.js.map +1 -0
  41. package/types/enums/services/index.d.ts +100 -0
  42. package/types/enums/services/index.js +79 -0
  43. package/types/enums/services/index.js.map +1 -0
  44. package/types/index.d.ts +4 -0
  45. package/types/index.js +13 -0
  46. package/types/index.js.map +1 -0
  47. package/types/input.d.ts +80 -0
  48. package/types/input.js +43 -0
  49. package/types/input.js.map +1 -0
  50. package/types/output.d.ts +84 -0
  51. package/types/output.js +42 -0
  52. package/types/output.js.map +1 -0
  53. package/utilities.d.ts +4 -0
  54. package/utilities.js +57 -0
  55. package/utilities.js.map +1 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,197 @@
1
+ # Pulumi Native Provider for Render
2
+
3
+ This repository is a boilerplate showing how to create a native Pulumi provider.
4
+
5
+ ### Background
6
+
7
+ This repository is part of the [guide for authoring and publishing a Pulumi Package](https://www.pulumi.com/docs/guides/pulumi-packages/how-to-author).
8
+
9
+ Learn about the concepts behind [Pulumi Packages](https://www.pulumi.com/docs/guides/pulumi-packages/#pulumi-packages).
10
+
11
+ Follow this link to see [an architecture diagram for Pulumi](https://www.pulumi.com/docs/intro/concepts/how-pulumi-works/#how-pulumi-works).
12
+
13
+ A Pulumi Resource Provider:
14
+ - is a gRPC server which allows for the Pulumi engine to create resources in a specific cloud
15
+ - holds the lifecycle logic for these cloud resources
16
+ - holds a pulumi JSON schema that describes the provider
17
+ - provides language-specific SDKs so resources can be created in whichever language you prefer
18
+
19
+ When we speak of a "native" provider, we mean that all implementation is native to Pulumi, as opposed
20
+ to [Terraform based providers](https://github.com/pulumi/pulumi-tf-provider-boilerplate).
21
+
22
+ ## Authoring a Pulumi Native Provider
23
+
24
+ The following instructions assume that the provider is written for the Pulumi organisation.
25
+ In the future, we will add instruction for providers published and maintained by the Pulumi community, referred to as "third-party" providers.
26
+
27
+ This boilerplate creates a working Pulumi-owned provider named `xyz`.
28
+ It implements a random number generator that you can [build and test out for yourself](#test-against-the-example) and then replace the Random code with code specific to your provider.
29
+
30
+
31
+ ### Prerequisites
32
+
33
+ Ensure the following tools are installed and present in your `$PATH`:
34
+
35
+ * [`pulumictl`](https://github.com/pulumi/pulumictl#installation)
36
+ * [Go 1.17](https://golang.org/dl/) or 1.latest
37
+ * [NodeJS](https://nodejs.org/en/) 14.x. We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage NodeJS installations.
38
+ * [Yarn](https://yarnpkg.com/)
39
+ * [TypeScript](https://www.typescriptlang.org/)
40
+ * [Python](https://www.python.org/downloads/) (called as `python3`). For recent versions of MacOS, the system-installed version is fine.
41
+ * [.NET](https://dotnet.microsoft.com/download)
42
+
43
+
44
+ ### Creating and Initializing the Repository
45
+
46
+ Pulumi offers this repository as a [GitHub template repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template) for convenience. From this repository:
47
+
48
+ 1. Click "Use this template".
49
+ 1. Set the following options:
50
+ * Owner: pulumi
51
+ * Repository name: pulumi-xyz-native (replace "xyz" with the name of your provider)
52
+ * Description: Pulumi provider for xyz
53
+ * Repository type: Public
54
+ 1. Clone the generated repository.
55
+
56
+ From the templated repository:
57
+
58
+ 1. Search-replace `xyz` with the name of your desired provider.
59
+
60
+ #### Build the provider and install the plugin
61
+
62
+ ```bash
63
+ $ make build install
64
+ ```
65
+
66
+ This will:
67
+
68
+ 1. Create the SDK codegen binary and place it in a `./bin` folder (gitignored)
69
+ 2. Create the provider binary and place it in the `./bin` folder (gitignored)
70
+ 3. Generate the dotnet, Go, Node, and Python SDKs and place them in the `./sdk` folder
71
+ 4. Install the provider on your machine.
72
+
73
+ #### Test against the example
74
+
75
+ ```bash
76
+ $ cd examples/simple
77
+ $ yarn link @pulumi/xyz
78
+ $ yarn install
79
+ $ pulumi stack init test
80
+ $ pulumi up
81
+ ```
82
+
83
+ Now that you have completed all of the above steps, you have a working provider that generates a random string for you.
84
+
85
+ #### A brief repository overview
86
+
87
+ You now have:
88
+
89
+ 1. A `provider/` folder containing the building and implementation logic
90
+ 1. `cmd/`
91
+ 1. `pulumi-gen-xyz/` - generates language SDKs from the schema
92
+ 2. `pulumi-resource-xyz/` - holds the package schema, injects the package version, and starts the gRPC server
93
+ 2. `pkg`
94
+ 1. `provider` - holds the gRPC methods (and for now, the sample implementation logic) required by the Pulumi engine
95
+ 2. `version` - semver package to be consumed by build processes
96
+ 2. `deployment-templates` - a set of files to help you around deployment and publication
97
+ 3. `sdk` - holds the generated code libraries created by `pulumi-gen-xyz/main.go`
98
+ 4. `examples` a folder of Pulumi programs to try locally and/or use in CI.
99
+ 5. A `Makefile` and this `README`.
100
+
101
+ ### Writing the schema
102
+
103
+ The [JSON schema file](https://www.pulumi.com/docs/guides/pulumi-packages/schema) is used by `pulumi-gen-xyz` to create language-specific SDKs.
104
+ It is, therefore, a central requirement for any resource provider.
105
+ Provider schemas can be handwritten, or alternatively machine-generated by combining API specification with pulumi-specific logic.
106
+
107
+ When writing the schema by hand, it is helpful to associate the JSON schema in your IDE for completion or Intellisense features to work:
108
+
109
+ * Visual Studio Code: the easiest option is to [map the schema file](https://code.visualstudio.com/Docs/languages/json#_mapping-in-the-user-settings)
110
+ in your User Settings which enables it for all your provider projects:
111
+ ```json
112
+ "json.schemas": [
113
+ {
114
+ "fileMatch": [
115
+ "/provider/cmd/pulumi-*/schema.json"
116
+ ],
117
+ "url": "https://raw.githubusercontent.com/pulumi/pulumi/master/pkg/codegen/schema/pulumi.json"
118
+ }
119
+ ]
120
+ ```
121
+
122
+ This repository provides the [xyz example schema](./provider/cmd/pulumi-resource-xyz/schema.json) to get you started.
123
+ [The AWS Native Provider schema](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-resource-aws-native/schema.json) provides a much larger example.
124
+ Refer to the [package schema documentation](https://www.pulumi.com/docs/guides/pulumi-packages/schema/#pulumi-package-schema) for additional details when writing the schema.
125
+
126
+ ### Implementing the gRPC methods
127
+
128
+ Once you have a schema that describes all the resources and metadata for your provider, you will need to implement the desired gRPC methods.
129
+ You will find a mostly blank implementation of these in `pkg/provider/provider.go`.
130
+ Note that these methods do not link 1:1 to the Pulumi CLI commands.
131
+
132
+ #### Basic Functionality
133
+
134
+ The struct and creation of the provider are implemented already:
135
+
136
+ ```go
137
+ // provider/pkg/provider.go
138
+ type xyzProvider struct {
139
+ host *provider.HostClient
140
+ name string
141
+ version string
142
+ schema []byte
143
+ }
144
+
145
+ func makeProvider(host *provider.HostClient, name, version string, pulumiSchema []byte) (pulumirpc.ResourceProviderServer, error) {
146
+ // Return the new provider
147
+ return &xyzProvider{
148
+ host: host,
149
+ name: name,
150
+ version: version,
151
+ schema: pulumiSchema,
152
+ }, nil
153
+ }
154
+ ```
155
+
156
+ You need to provide the following methods:
157
+
158
+ 1. Check - validates resource Inputs
159
+ 2. Diff - calculates the differences between the actual and the desired state of a resource
160
+ 3. Create - creates a new instance of a resource from an Input
161
+ 4. Update - updates a resource in-place (i.e. without deleting/recreating)
162
+ 5. Read - reads current inputs and state for a resource
163
+ 6. Delete - deletes a resource and its corresponding state
164
+
165
+ [Resource lifecycle methods are documented here](https://pulumi-developer-docs.readthedocs.io/en/stable/providers/implementers-guide.html#custom-resource-lifecycle).
166
+
167
+ The following methods are necessary for every provider and are already implemented:
168
+
169
+ 1. GetPluginInfo - returns generic information about this plugin, like its version
170
+ 2. GetSchema - returns the Pulumi schema to the provider
171
+
172
+
173
+ #### Additional Methods
174
+
175
+ The [resource provider service](https://github.com/pulumi/pulumi/blob/master/sdk/proto/provider.proto) includes a few more gRPC methods that you may need to implement and can read more about.
176
+
177
+ ### Build Examples
178
+
179
+ Create an example program using the resources defined in your provider, and place it in the `examples/` folder.
180
+
181
+ You can now repeat the steps for [build, install, and test](#test-against-the-example).
182
+
183
+
184
+ ## Documentation
185
+
186
+ Please [follow this guide to add documentation to your provider](https://www.pulumi.com/docs/guides/pulumi-packages/how-to-author/#write-documentation).
187
+
188
+ ## Configuring CI and releases
189
+
190
+ 1. Follow the instructions laid out in the [deployment templates](./deployment-templates/README-DEPLOYMENT.md).
191
+
192
+ ## References
193
+
194
+ Other resources for learning about the Pulumi resource model:
195
+ * [Pulumi Kubernetes provider](https://github.com/pulumi/pulumi-kubernetes/blob/master/provider/pkg/provider/provider.go)
196
+ * [Pulumi Terraform Remote State provider](https://github.com/pulumi/pulumi-terraform/blob/master/provider/cmd/pulumi-resource-terraform/provider.go)
197
+ * [Dynamic Providers](https://www.pulumi.com/docs/intro/concepts/programming-model/#dynamicproviders)
@@ -0,0 +1 @@
1
+ export * from "./vars";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumigen. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ // Export members:
20
+ __exportStar(require("./vars"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
@@ -0,0 +1,9 @@
1
+ import { enums } from "../types";
2
+ /**
3
+ * The Render API key
4
+ */
5
+ export declare const apiKey: string | undefined;
6
+ /**
7
+ * When a service is updated, a deployment is automatically triggered. This variable controls whether or not the service cache should be cleared upon deployment.
8
+ */
9
+ export declare const clearCacheOnServiceUpdateDeployments: enums.services.DeployClearCache | undefined;
package/config/vars.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumigen. ***
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("render");
7
+ Object.defineProperty(exports, "apiKey", {
8
+ get() {
9
+ return __config.get("apiKey");
10
+ },
11
+ enumerable: true,
12
+ });
13
+ Object.defineProperty(exports, "clearCacheOnServiceUpdateDeployments", {
14
+ get() {
15
+ return __config.getObject("clearCacheOnServiceUpdateDeployments");
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,yDAAyD;AACzD,iFAAiF;;AAEjF,yCAAyC;AAKzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAM7C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sCAAsC,EAAE;IACnE,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAkC,sCAAsC,CAAC,CAAC;IACvG,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export * from "./provider";
2
+ import * as config from "./config";
3
+ import * as services from "./services";
4
+ import * as types from "./types";
5
+ export { config, services, types, };
package/index.js ADDED
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumigen. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.types = exports.services = exports.config = void 0;
20
+ const pulumi = require("@pulumi/pulumi");
21
+ const utilities = require("./utilities");
22
+ // Export members:
23
+ __exportStar(require("./provider"), exports);
24
+ // Export sub-modules:
25
+ const config = require("./config");
26
+ exports.config = config;
27
+ const services = require("./services");
28
+ exports.services = services;
29
+ const types = require("./types");
30
+ exports.types = types;
31
+ const provider_1 = require("./provider");
32
+ pulumi.runtime.registerResourcePackage("render", {
33
+ version: utilities.getVersion(),
34
+ constructProvider: (name, type, urn) => {
35
+ if (type !== "pulumi:providers:render") {
36
+ throw new Error(`unknown provider type ${type}`);
37
+ }
38
+ return new provider_1.Provider(name, undefined, { urn });
39
+ },
40
+ });
41
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,6CAA2B;AAE3B,sBAAsB;AACtB,mCAAmC;AAK/B,wBAAM;AAJV,uCAAuC;AAKnC,4BAAQ;AAJZ,iCAAiC;AAK7B,sBAAK;AAGT,yCAAsC;AAEtC,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,yBAAyB,EAAE;YACpC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@cloudyskysoftware/pulumi-render",
3
+ "version": "v0.0.31",
4
+ "keywords": [
5
+ "pulumi",
6
+ "render",
7
+ "category/cloud",
8
+ "kind/native"
9
+ ],
10
+ "homepage": "https://cloudysky.software",
11
+ "repository": "https://github.com/cloudy-sky-software/pulumi-render",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "install": "node scripts/install-pulumi-plugin.js resource render v0.0.31"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/pulumi": "^3.0.0",
19
+ "@types/glob": "^5.0.35",
20
+ "@types/node-fetch": "^2.1.4",
21
+ "@types/tmp": "^0.0.33",
22
+ "glob": "^7.1.2",
23
+ "node-fetch": "^2.3.0",
24
+ "shell-quote": "^1.6.1",
25
+ "tmp": "^0.0.33"
26
+ },
27
+ "devDependencies": {
28
+ "@types/mocha": "^5.2.5",
29
+ "@types/shell-quote": "^1.6.0",
30
+ "mocha": "^5.2.0",
31
+ "typescript": "^4.3.5"
32
+ },
33
+ "pulumi": {
34
+ "resource": true,
35
+ "name": "render",
36
+ "server": "https://github.com/cloudy-sky-software/pulumi-render/releases/download/v0.0.31"
37
+ }
38
+ }
package/provider.d.ts ADDED
@@ -0,0 +1,28 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The provider type for the render package.
4
+ */
5
+ export declare class Provider extends pulumi.ProviderResource {
6
+ /**
7
+ * Returns true if the given object is an instance of Provider. This is designed to work even
8
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
9
+ */
10
+ static isInstance(obj: any): obj is Provider;
11
+ /**
12
+ * Create a Provider resource with the given unique name, arguments, and options.
13
+ *
14
+ * @param name The _unique_ name of the resource.
15
+ * @param args The arguments to use to populate this resource's properties.
16
+ * @param opts A bag of options that control this resource's behavior.
17
+ */
18
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
19
+ }
20
+ /**
21
+ * The set of arguments for constructing a Provider resource.
22
+ */
23
+ export interface ProviderArgs {
24
+ /**
25
+ * The Render API key.
26
+ */
27
+ apiKey?: pulumi.Input<string>;
28
+ }
package/provider.js ADDED
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumigen. ***
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.Provider = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The provider type for the render package.
10
+ */
11
+ class Provider extends pulumi.ProviderResource {
12
+ /**
13
+ * Create a Provider resource with the given unique name, arguments, and options.
14
+ *
15
+ * @param name The _unique_ name of the resource.
16
+ * @param args The arguments to use to populate this resource's properties.
17
+ * @param opts A bag of options that control this resource's behavior.
18
+ */
19
+ constructor(name, args, opts) {
20
+ var _a;
21
+ let resourceInputs = {};
22
+ opts = opts || {};
23
+ {
24
+ resourceInputs["apiKey"] = (_a = ((args === null || args === void 0 ? void 0 : args.apiKey) ? pulumi.secret(args.apiKey) : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnv("RENDER_APIKEY");
25
+ }
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
27
+ super(Provider.__pulumiType, name, resourceInputs, opts);
28
+ }
29
+ /**
30
+ * Returns true if the given object is an instance of Provider. This is designed to work even
31
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
32
+ */
33
+ static isInstance(obj) {
34
+ if (obj === undefined || obj === null) {
35
+ return false;
36
+ }
37
+ return obj['__pulumiType'] === Provider.__pulumiType;
38
+ }
39
+ }
40
+ exports.Provider = Provider;
41
+ /** @internal */
42
+ Provider.__pulumiType = 'render';
43
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAgBjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,QAAQ,CAAC,GAAG,MAAA,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;SAC3H;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IA3BD;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BAgCC;AA/BG,gBAAgB;AACO,qBAAY,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var childProcess = require("child_process");
3
+
4
+ var args = process.argv.slice(2);
5
+
6
+ if (args.indexOf("${VERSION}") !== -1) {
7
+ process.exit(0);
8
+ }
9
+
10
+ var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "https://github.com/cloudy-sky-software/pulumi-render/releases/download/${VERSION}"].concat(args), {
11
+ stdio: ["ignore", "inherit", "inherit"]
12
+ });
13
+
14
+ if (res.error && res.error.code === "ENOENT") {
15
+ console.error("\nThere was an error installing the resource provider plugin. " +
16
+ "It looks like `pulumi` is not installed on your system. " +
17
+ "Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
18
+ "You may try manually installing the plugin by running " +
19
+ "`pulumi plugin install " + args.join(" ") + "`");
20
+ } else if (res.error || res.status !== 0) {
21
+ console.error("\nThere was an error installing the resource provider plugin. " +
22
+ "You may try to manually installing the plugin by running " +
23
+ "`pulumi plugin install " + args.join(" ") + "`");
24
+ }
25
+
26
+ process.exit(0);