@bambamboole/coolify 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1 +1 @@
1
- Manage resources on a Coolify instance: projects, databases, private keys, GitHub Apps, servers, S3 storage, applications, scheduled tasks and deployments.
1
+ Manage resources on a Coolify instance: projects, databases and their backups, private keys, GitHub Apps, servers, S3 storage, applications, services, scheduled tasks and deployments.
package/application.d.ts CHANGED
@@ -59,7 +59,7 @@ export declare class Application extends pulumi.CustomResource {
59
59
  */
60
60
  readonly domains: pulumi.Output<string | undefined>;
61
61
  /**
62
- * Name of the environment inside the project.
62
+ * Name of the environment inside the project. Changing it moves the resource in place; the environment must already exist.
63
63
  */
64
64
  readonly environmentName: pulumi.Output<string>;
65
65
  /**
@@ -145,7 +145,7 @@ export declare class Application extends pulumi.CustomResource {
145
145
  */
146
146
  readonly privateKeyUuid: pulumi.Output<string | undefined>;
147
147
  /**
148
- * UUID of the Coolify project (the uuid output of a Project resource).
148
+ * UUID of the Coolify project (the uuid output of a Project resource). Changing it moves the resource to the new project in place.
149
149
  */
150
150
  readonly projectUuid: pulumi.Output<string>;
151
151
  /**
@@ -230,7 +230,7 @@ export interface ApplicationArgs {
230
230
  */
231
231
  domains?: pulumi.Input<string | undefined>;
232
232
  /**
233
- * Name of the environment inside the project.
233
+ * Name of the environment inside the project. Changing it moves the resource in place; the environment must already exist.
234
234
  */
235
235
  environmentName: pulumi.Input<string>;
236
236
  /**
@@ -312,7 +312,7 @@ export interface ApplicationArgs {
312
312
  */
313
313
  privateKeyUuid?: pulumi.Input<string | undefined>;
314
314
  /**
315
- * UUID of the Coolify project (the uuid output of a Project resource).
315
+ * UUID of the Coolify project (the uuid output of a Project resource). Changing it moves the resource to the new project in place.
316
316
  */
317
317
  projectUuid: pulumi.Input<string>;
318
318
  /**
package/database.d.ts CHANGED
@@ -31,7 +31,7 @@ export declare class Database extends pulumi.CustomResource {
31
31
  */
32
32
  readonly environmentId: pulumi.Output<number>;
33
33
  /**
34
- * Name of the environment inside the project.
34
+ * Name of the environment inside the project. Changing it moves the resource in place; the environment must already exist.
35
35
  */
36
36
  readonly environmentName: pulumi.Output<string>;
37
37
  /**
@@ -63,7 +63,7 @@ export declare class Database extends pulumi.CustomResource {
63
63
  */
64
64
  readonly password: pulumi.Output<string>;
65
65
  /**
66
- * UUID of the Coolify project (the uuid output of a Project resource).
66
+ * UUID of the Coolify project (the uuid output of a Project resource). Changing it moves the resource to the new project in place.
67
67
  */
68
68
  readonly projectUuid: pulumi.Output<string>;
69
69
  /**
@@ -108,7 +108,7 @@ export interface DatabaseArgs {
108
108
  */
109
109
  description?: pulumi.Input<string | undefined>;
110
110
  /**
111
- * Name of the environment inside the project.
111
+ * Name of the environment inside the project. Changing it moves the resource in place; the environment must already exist.
112
112
  */
113
113
  environmentName: pulumi.Input<string>;
114
114
  /**
@@ -128,7 +128,7 @@ export interface DatabaseArgs {
128
128
  */
129
129
  name: pulumi.Input<string>;
130
130
  /**
131
- * UUID of the Coolify project (the uuid output of a Project resource).
131
+ * UUID of the Coolify project (the uuid output of a Project resource). Changing it moves the resource to the new project in place.
132
132
  */
133
133
  projectUuid: pulumi.Input<string>;
134
134
  /**
@@ -0,0 +1,166 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * A scheduled backup configuration of a standalone Coolify database, optionally uploaded to an S3 storage. An existing configuration with the identical frequency on the database is adopted on create. Redis, KeyDB and Dragonfly do not support backups.
4
+ */
5
+ export declare class DatabaseBackup extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing DatabaseBackup resource's state with the given name, ID, and optional extra
8
+ * properties used to qualify the lookup.
9
+ *
10
+ * @param name The _unique_ name of the resulting resource.
11
+ * @param id The _unique_ provider ID of the resource to lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): DatabaseBackup;
15
+ /**
16
+ * Returns true if the given object is an instance of DatabaseBackup. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ static isInstance(obj: any): obj is DatabaseBackup;
20
+ /**
21
+ * Run a backup right after creating the configuration. Only relevant on create.
22
+ */
23
+ readonly backupNow: pulumi.Output<boolean | undefined>;
24
+ /**
25
+ * UUID of the Coolify database to back up (the uuid output of a Database resource). Changing it replaces the configuration.
26
+ */
27
+ readonly databaseUuid: pulumi.Output<string>;
28
+ /**
29
+ * Comma separated list of databases to dump. Leave unset to keep Coolify's default, the database's primary database.
30
+ */
31
+ readonly databasesToBackup: pulumi.Output<string | undefined>;
32
+ /**
33
+ * Also delete the uploaded S3 files when the configuration is destroyed.
34
+ */
35
+ readonly deleteS3Files: pulumi.Output<boolean | undefined>;
36
+ /**
37
+ * Dump all databases of the server instead of the listed ones.
38
+ */
39
+ readonly dumpAll: pulumi.Output<boolean | undefined>;
40
+ /**
41
+ * Whether the schedule is enabled.
42
+ */
43
+ readonly enabled: pulumi.Output<boolean>;
44
+ /**
45
+ * Cron expression or Coolify shorthand such as "daily" or "0 3 * * *". An existing configuration with the identical frequency string on the database is adopted on create; Coolify's own default schedule uses "0 0 * * *".
46
+ */
47
+ readonly frequency: pulumi.Output<string>;
48
+ /**
49
+ * Number of backups kept locally; 0 keeps all. Leave unset to keep Coolify's default.
50
+ */
51
+ readonly retentionAmountLocally: pulumi.Output<number | undefined>;
52
+ /**
53
+ * Number of backups kept in S3; 0 keeps all. Leave unset to keep Coolify's default.
54
+ */
55
+ readonly retentionAmountS3: pulumi.Output<number | undefined>;
56
+ /**
57
+ * Days local backups are kept; 0 keeps them forever. Leave unset to keep Coolify's default.
58
+ */
59
+ readonly retentionDaysLocally: pulumi.Output<number | undefined>;
60
+ /**
61
+ * Days S3 backups are kept; 0 keeps them forever. Leave unset to keep Coolify's default.
62
+ */
63
+ readonly retentionDaysS3: pulumi.Output<number | undefined>;
64
+ /**
65
+ * Maximum local storage in GB; 0 is unlimited. Leave unset to keep Coolify's default.
66
+ */
67
+ readonly retentionMaxStorageLocally: pulumi.Output<number | undefined>;
68
+ /**
69
+ * Maximum S3 storage in GB; 0 is unlimited. Leave unset to keep Coolify's default.
70
+ */
71
+ readonly retentionMaxStorageS3: pulumi.Output<number | undefined>;
72
+ /**
73
+ * UUID of the S3 storage (the uuid output of an S3Storage resource). Required when saveS3 is true. Coolify does not report the configured storage, so drift on this input is not detected.
74
+ */
75
+ readonly s3StorageUuid: pulumi.Output<string | undefined>;
76
+ /**
77
+ * Upload backups to an S3 storage.
78
+ */
79
+ readonly saveS3: pulumi.Output<boolean | undefined>;
80
+ /**
81
+ * Timeout of a backup run in seconds, between 60 and 36000. Leave unset to keep Coolify's default.
82
+ */
83
+ readonly timeout: pulumi.Output<number | undefined>;
84
+ /**
85
+ * UUID of the backup configuration in Coolify.
86
+ */
87
+ readonly uuid: pulumi.Output<string>;
88
+ /**
89
+ * Create a DatabaseBackup resource with the given unique name, arguments, and options.
90
+ *
91
+ * @param name The _unique_ name of the resource.
92
+ * @param args The arguments to use to populate this resource's properties.
93
+ * @param opts A bag of options that control this resource's behavior.
94
+ */
95
+ constructor(name: string, args: DatabaseBackupArgs, opts?: pulumi.CustomResourceOptions);
96
+ }
97
+ /**
98
+ * The set of arguments for constructing a DatabaseBackup resource.
99
+ */
100
+ export interface DatabaseBackupArgs {
101
+ /**
102
+ * Run a backup right after creating the configuration. Only relevant on create.
103
+ */
104
+ backupNow?: pulumi.Input<boolean | undefined>;
105
+ /**
106
+ * UUID of the Coolify database to back up (the uuid output of a Database resource). Changing it replaces the configuration.
107
+ */
108
+ databaseUuid: pulumi.Input<string>;
109
+ /**
110
+ * Comma separated list of databases to dump. Leave unset to keep Coolify's default, the database's primary database.
111
+ */
112
+ databasesToBackup?: pulumi.Input<string | undefined>;
113
+ /**
114
+ * Also delete the uploaded S3 files when the configuration is destroyed.
115
+ */
116
+ deleteS3Files?: pulumi.Input<boolean | undefined>;
117
+ /**
118
+ * Dump all databases of the server instead of the listed ones.
119
+ */
120
+ dumpAll?: pulumi.Input<boolean | undefined>;
121
+ /**
122
+ * Whether the schedule is enabled.
123
+ */
124
+ enabled?: pulumi.Input<boolean | undefined>;
125
+ /**
126
+ * Cron expression or Coolify shorthand such as "daily" or "0 3 * * *". An existing configuration with the identical frequency string on the database is adopted on create; Coolify's own default schedule uses "0 0 * * *".
127
+ */
128
+ frequency: pulumi.Input<string>;
129
+ /**
130
+ * Number of backups kept locally; 0 keeps all. Leave unset to keep Coolify's default.
131
+ */
132
+ retentionAmountLocally?: pulumi.Input<number | undefined>;
133
+ /**
134
+ * Number of backups kept in S3; 0 keeps all. Leave unset to keep Coolify's default.
135
+ */
136
+ retentionAmountS3?: pulumi.Input<number | undefined>;
137
+ /**
138
+ * Days local backups are kept; 0 keeps them forever. Leave unset to keep Coolify's default.
139
+ */
140
+ retentionDaysLocally?: pulumi.Input<number | undefined>;
141
+ /**
142
+ * Days S3 backups are kept; 0 keeps them forever. Leave unset to keep Coolify's default.
143
+ */
144
+ retentionDaysS3?: pulumi.Input<number | undefined>;
145
+ /**
146
+ * Maximum local storage in GB; 0 is unlimited. Leave unset to keep Coolify's default.
147
+ */
148
+ retentionMaxStorageLocally?: pulumi.Input<number | undefined>;
149
+ /**
150
+ * Maximum S3 storage in GB; 0 is unlimited. Leave unset to keep Coolify's default.
151
+ */
152
+ retentionMaxStorageS3?: pulumi.Input<number | undefined>;
153
+ /**
154
+ * UUID of the S3 storage (the uuid output of an S3Storage resource). Required when saveS3 is true. Coolify does not report the configured storage, so drift on this input is not detected.
155
+ */
156
+ s3StorageUuid?: pulumi.Input<string | undefined>;
157
+ /**
158
+ * Upload backups to an S3 storage.
159
+ */
160
+ saveS3?: pulumi.Input<boolean | undefined>;
161
+ /**
162
+ * Timeout of a backup run in seconds, between 60 and 36000. Leave unset to keep Coolify's default.
163
+ */
164
+ timeout?: pulumi.Input<number | undefined>;
165
+ }
166
+ //# sour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KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1D;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxD;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnD;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9D;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C"}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.DatabaseBackup = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * A scheduled backup configuration of a standalone Coolify database, optionally uploaded to an S3 storage. An existing configuration with the identical frequency on the database is adopted on create. Redis, KeyDB and Dragonfly do not support backups.
33
+ */
34
+ class DatabaseBackup extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing DatabaseBackup resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name, id, opts) {
44
+ return new DatabaseBackup(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'coolify:index:DatabaseBackup';
48
+ /**
49
+ * Returns true if the given object is an instance of DatabaseBackup. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === DatabaseBackup.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a DatabaseBackup resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name, args, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (!opts.id) {
69
+ if (args?.databaseUuid === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'databaseUuid'");
71
+ }
72
+ if (args?.frequency === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'frequency'");
74
+ }
75
+ resourceInputs["backupNow"] = args?.backupNow;
76
+ resourceInputs["databaseUuid"] = args?.databaseUuid;
77
+ resourceInputs["databasesToBackup"] = args?.databasesToBackup;
78
+ resourceInputs["deleteS3Files"] = args?.deleteS3Files;
79
+ resourceInputs["dumpAll"] = args?.dumpAll;
80
+ resourceInputs["enabled"] = (args?.enabled) ?? true;
81
+ resourceInputs["frequency"] = args?.frequency;
82
+ resourceInputs["retentionAmountLocally"] = args?.retentionAmountLocally;
83
+ resourceInputs["retentionAmountS3"] = args?.retentionAmountS3;
84
+ resourceInputs["retentionDaysLocally"] = args?.retentionDaysLocally;
85
+ resourceInputs["retentionDaysS3"] = args?.retentionDaysS3;
86
+ resourceInputs["retentionMaxStorageLocally"] = args?.retentionMaxStorageLocally;
87
+ resourceInputs["retentionMaxStorageS3"] = args?.retentionMaxStorageS3;
88
+ resourceInputs["s3StorageUuid"] = args?.s3StorageUuid;
89
+ resourceInputs["saveS3"] = args?.saveS3;
90
+ resourceInputs["timeout"] = args?.timeout;
91
+ resourceInputs["uuid"] = undefined /*out*/;
92
+ }
93
+ else {
94
+ resourceInputs["backupNow"] = undefined /*out*/;
95
+ resourceInputs["databaseUuid"] = undefined /*out*/;
96
+ resourceInputs["databasesToBackup"] = undefined /*out*/;
97
+ resourceInputs["deleteS3Files"] = undefined /*out*/;
98
+ resourceInputs["dumpAll"] = undefined /*out*/;
99
+ resourceInputs["enabled"] = undefined /*out*/;
100
+ resourceInputs["frequency"] = undefined /*out*/;
101
+ resourceInputs["retentionAmountLocally"] = undefined /*out*/;
102
+ resourceInputs["retentionAmountS3"] = undefined /*out*/;
103
+ resourceInputs["retentionDaysLocally"] = undefined /*out*/;
104
+ resourceInputs["retentionDaysS3"] = undefined /*out*/;
105
+ resourceInputs["retentionMaxStorageLocally"] = undefined /*out*/;
106
+ resourceInputs["retentionMaxStorageS3"] = undefined /*out*/;
107
+ resourceInputs["s3StorageUuid"] = undefined /*out*/;
108
+ resourceInputs["saveS3"] = undefined /*out*/;
109
+ resourceInputs["timeout"] = undefined /*out*/;
110
+ resourceInputs["uuid"] = undefined /*out*/;
111
+ }
112
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
113
+ super(DatabaseBackup.__pulumiType, name, resourceInputs, opts);
114
+ }
115
+ }
116
+ exports.DatabaseBackup = DatabaseBackup;
117
+ //# sourceMappingURL=databaseBackup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databaseBackup.js","sourceRoot":"","sources":["../databaseBackup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,cAAc,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E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Ac,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjE,cAAc,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5D,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAvJL,wCAwJC"}
package/index.d.ts CHANGED
@@ -4,6 +4,9 @@ export declare const Application: typeof import("./application").Application;
4
4
  export { DatabaseArgs } from "./database";
5
5
  export type Database = import("./database").Database;
6
6
  export declare const Database: typeof import("./database").Database;
7
+ export { DatabaseBackupArgs } from "./databaseBackup";
8
+ export type DatabaseBackup = import("./databaseBackup").DatabaseBackup;
9
+ export declare const DatabaseBackup: typeof import("./databaseBackup").DatabaseBackup;
7
10
  export { DeploymentArgs } from "./deployment";
8
11
  export type Deployment = import("./deployment").Deployment;
9
12
  export declare const Deployment: typeof import("./deployment").Deployment;
@@ -28,6 +31,9 @@ export declare const ScheduledTask: typeof import("./scheduledTask").ScheduledTa
28
31
  export { ServerArgs } from "./server";
29
32
  export type Server = import("./server").Server;
30
33
  export declare const Server: typeof import("./server").Server;
34
+ export { ServiceArgs } from "./service";
35
+ export type Service = import("./service").Service;
36
+ export declare const Service: typeof import("./service").Service;
31
37
  export * from "./types/enums";
32
38
  import * as config from "./config";
33
39
  import * as types from "./types";
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,eAAe,EAAE,WAAW,CAAC;AAC9D,eAAO,MAAM,WAAW,EAAE,cAAc,eAAe,EAAE,WAAyB,CAAC;AAGnF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,OAAO,YAAY,EAAE,QAAQ,CAAC;AACrD,eAAO,MAAM,QAAQ,EAAE,cAAc,YAAY,EAAE,QAAsB,CAAC;AAG1E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,OAAO,cAAc,EAAE,UAAU,CAAC;AAC3D,eAAO,MAAM,UAAU,EAAE,cAAc,cAAc,EAAE,UAAwB,CAAC;AAGhF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,OAAO,aAAa,EAAE,SAAS,CAAC;AACxD,eAAO,MAAM,SAAS,EAAE,cAAc,aAAa,EAAE,SAAuB,CAAC;AAG7E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,OAAO,cAAc,EAAE,UAAU,CAAC;AAC3D,eAAO,MAAM,UAAU,EAAE,cAAc,cAAc,EAAE,UAAwB,CAAC;AAGhF,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,MAAM,MAAM,OAAO,GAAG,OAAO,WAAW,EAAE,OAAO,CAAC;AAClD,eAAO,MAAM,OAAO,EAAE,cAAc,WAAW,EAAE,OAAqB,CAAC;AAGvE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,MAAM,MAAM,QAAQ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C;AACpD,MAAM,MAAM,aAAa,GAAG,OAAO,iBAAiB,EAAE,aAAa,CAAC;AACpE,eAAO,MAAM,aAAa,EAAE,cAAc,iBAAiB,EAAE,aAA2B,CAAC;AAGzF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,MAAM,MAAM,MAAM,GAAG,OAAO,UAAU,EAAE,MAAM,CAAC;AAC/C,eAAO,MAAM,MAAM,EAAE,cAAc,UAAU,EAAE,MAAoB,CAAC;AAGpE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,MAAM,MAAM,OAAO,GAAG,OAAO,WAAW,EAAE,OAAO,CAAC;AAClD,eAAO,MAAM,OAAO,EAAE,cAAc,WAAW,EAAE,OAAqB,CAAC;AAKvE,cAAc,eAAe,CAAC;AAG9B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EACH,MAAM,EACN,KAAK,GACR,CAAC"}
package/index.js CHANGED
@@ -28,13 +28,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
29
29
  };
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.types = exports.config = exports.Server = exports.ScheduledTask = exports.S3Storage = exports.Provider = exports.Project = exports.PrivateKey = exports.GitHubApp = exports.Deployment = exports.Database = exports.Application = void 0;
31
+ exports.types = exports.config = exports.Service = exports.Server = exports.ScheduledTask = exports.S3Storage = exports.Provider = exports.Project = exports.PrivateKey = exports.GitHubApp = exports.Deployment = exports.DatabaseBackup = exports.Database = exports.Application = void 0;
32
32
  const pulumi = __importStar(require("@pulumi/pulumi"));
33
33
  const utilities = __importStar(require("./utilities"));
34
34
  exports.Application = null;
35
35
  utilities.lazyLoad(exports, ["Application"], () => require("./application"));
36
36
  exports.Database = null;
37
37
  utilities.lazyLoad(exports, ["Database"], () => require("./database"));
38
+ exports.DatabaseBackup = null;
39
+ utilities.lazyLoad(exports, ["DatabaseBackup"], () => require("./databaseBackup"));
38
40
  exports.Deployment = null;
39
41
  utilities.lazyLoad(exports, ["Deployment"], () => require("./deployment"));
40
42
  exports.GitHubApp = null;
@@ -51,6 +53,8 @@ exports.ScheduledTask = null;
51
53
  utilities.lazyLoad(exports, ["ScheduledTask"], () => require("./scheduledTask"));
52
54
  exports.Server = null;
53
55
  utilities.lazyLoad(exports, ["Server"], () => require("./server"));
56
+ exports.Service = null;
57
+ utilities.lazyLoad(exports, ["Service"], () => require("./service"));
54
58
  // Export enums:
55
59
  __exportStar(require("./types/enums"), exports);
56
60
  // Export sub-modules:
@@ -66,6 +70,8 @@ const _module = {
66
70
  return new exports.Application(name, undefined, { urn });
67
71
  case "coolify:index:Database":
68
72
  return new exports.Database(name, undefined, { urn });
73
+ case "coolify:index:DatabaseBackup":
74
+ return new exports.DatabaseBackup(name, undefined, { urn });
69
75
  case "coolify:index:Deployment":
70
76
  return new exports.Deployment(name, undefined, { urn });
71
77
  case "coolify:index:GitHubApp":
@@ -80,6 +86,8 @@ const _module = {
80
86
  return new exports.ScheduledTask(name, undefined, { urn });
81
87
  case "coolify:index:Server":
82
88
  return new exports.Server(name, undefined, { urn });
89
+ case "coolify:index:Service":
90
+ return new exports.Service(name, undefined, { urn });
83
91
  default:
84
92
  throw new Error(`unknown resource type ${type}`);
85
93
  }
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAK5B,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CA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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bambamboole/coolify",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "homepage": "https://coolify.io",
5
5
  "repository": "https://github.com/bambamboole/pulumi-provider-coolify",
6
6
  "license": "Apache-2.0",
@@ -13,7 +13,7 @@
13
13
  "pulumi": {
14
14
  "resource": true,
15
15
  "name": "coolify",
16
- "version": "0.5.0",
16
+ "version": "0.6.0",
17
17
  "server": "https://github.com/bambamboole/pulumi-provider-coolify/releases/download/v$%7BVERSION%7D"
18
18
  },
19
19
  "main": "index.js",
package/service.d.ts ADDED
@@ -0,0 +1,130 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * A Coolify service from a one-click template or a docker compose file. An existing service with the same name in the environment is adopted on create.
4
+ */
5
+ export declare class Service extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing Service resource's state with the given name, ID, and optional extra
8
+ * properties used to qualify the lookup.
9
+ *
10
+ * @param name The _unique_ name of the resulting resource.
11
+ * @param id The _unique_ provider ID of the resource to lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Service;
15
+ /**
16
+ * Returns true if the given object is an instance of Service. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ static isInstance(obj: any): obj is Service;
20
+ /**
21
+ * Connect the service to Coolify's predefined Docker network.
22
+ */
23
+ readonly connectToDockerNetwork: pulumi.Output<boolean | undefined>;
24
+ /**
25
+ * Description of the service.
26
+ */
27
+ readonly description: pulumi.Output<string | undefined>;
28
+ /**
29
+ * UUID of the destination when the server has several. Only relevant on create.
30
+ */
31
+ readonly destinationUuid: pulumi.Output<string | undefined>;
32
+ /**
33
+ * Docker compose file content for custom services. Exactly one of type and dockerCompose must be set. Coolify does not report the compose file back, so drift on this input is not detected.
34
+ */
35
+ readonly dockerCompose: pulumi.Output<string | undefined>;
36
+ /**
37
+ * Name of the environment inside the project. Changing it moves the service in place; the environment must already exist.
38
+ */
39
+ readonly environmentName: pulumi.Output<string>;
40
+ /**
41
+ * Environment variables managed by key. Declared keys missing in Coolify are created as hidden values; existing keys are never patched and undeclared keys are left untouched.
42
+ */
43
+ readonly environmentVariables: pulumi.Output<{
44
+ [key: string]: string;
45
+ } | undefined>;
46
+ /**
47
+ * Start the service right after creating it. Only relevant on create.
48
+ */
49
+ readonly instantDeploy: pulumi.Output<boolean | undefined>;
50
+ /**
51
+ * Service name. Defaults to the Pulumi resource name. An existing service with this name in the environment is adopted.
52
+ */
53
+ readonly name: pulumi.Output<string | undefined>;
54
+ /**
55
+ * UUID of the Coolify project (the uuid output of a Project resource). Changing it moves the service to the new project in place.
56
+ */
57
+ readonly projectUuid: pulumi.Output<string>;
58
+ /**
59
+ * UUID of the server hosting the service (the uuid output of a Server resource). Changing it replaces the service.
60
+ */
61
+ readonly serverUuid: pulumi.Output<string>;
62
+ /**
63
+ * One-click service type, e.g. "plausible" or "gitea-with-mysql". Exactly one of type and dockerCompose must be set. Changing it replaces the service.
64
+ */
65
+ readonly type: pulumi.Output<string | undefined>;
66
+ /**
67
+ * UUID of the service in Coolify.
68
+ */
69
+ readonly uuid: pulumi.Output<string>;
70
+ /**
71
+ * Create a Service resource with the given unique name, arguments, and options.
72
+ *
73
+ * @param name The _unique_ name of the resource.
74
+ * @param args The arguments to use to populate this resource's properties.
75
+ * @param opts A bag of options that control this resource's behavior.
76
+ */
77
+ constructor(name: string, args: ServiceArgs, opts?: pulumi.CustomResourceOptions);
78
+ }
79
+ /**
80
+ * The set of arguments for constructing a Service resource.
81
+ */
82
+ export interface ServiceArgs {
83
+ /**
84
+ * Connect the service to Coolify's predefined Docker network.
85
+ */
86
+ connectToDockerNetwork?: pulumi.Input<boolean | undefined>;
87
+ /**
88
+ * Description of the service.
89
+ */
90
+ description?: pulumi.Input<string | undefined>;
91
+ /**
92
+ * UUID of the destination when the server has several. Only relevant on create.
93
+ */
94
+ destinationUuid?: pulumi.Input<string | undefined>;
95
+ /**
96
+ * Docker compose file content for custom services. Exactly one of type and dockerCompose must be set. Coolify does not report the compose file back, so drift on this input is not detected.
97
+ */
98
+ dockerCompose?: pulumi.Input<string | undefined>;
99
+ /**
100
+ * Name of the environment inside the project. Changing it moves the service in place; the environment must already exist.
101
+ */
102
+ environmentName: pulumi.Input<string>;
103
+ /**
104
+ * Environment variables managed by key. Declared keys missing in Coolify are created as hidden values; existing keys are never patched and undeclared keys are left untouched.
105
+ */
106
+ environmentVariables?: pulumi.Input<{
107
+ [key: string]: pulumi.Input<string>;
108
+ } | undefined>;
109
+ /**
110
+ * Start the service right after creating it. Only relevant on create.
111
+ */
112
+ instantDeploy?: pulumi.Input<boolean | undefined>;
113
+ /**
114
+ * Service name. Defaults to the Pulumi resource name. An existing service with this name in the environment is adopted.
115
+ */
116
+ name?: pulumi.Input<string | undefined>;
117
+ /**
118
+ * UUID of the Coolify project (the uuid output of a Project resource). Changing it moves the service to the new project in place.
119
+ */
120
+ projectUuid: pulumi.Input<string>;
121
+ /**
122
+ * UUID of the server hosting the service (the uuid output of a Server resource). Changing it replaces the service.
123
+ */
124
+ serverUuid: pulumi.Input<string>;
125
+ /**
126
+ * One-click service type, e.g. "plausible" or "gitea-with-mysql". Exactly one of type and dockerCompose must be set. Changing it replaces the service.
127
+ */
128
+ type?: pulumi.Input<string | undefined>;
129
+ }
130
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,I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
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Service = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * A Coolify service from a one-click template or a docker compose file. An existing service with the same name in the environment is adopted on create.
33
+ */
34
+ class Service extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing Service resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name, id, opts) {
44
+ return new Service(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'coolify:index:Service';
48
+ /**
49
+ * Returns true if the given object is an instance of Service. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === Service.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a Service resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name, args, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (!opts.id) {
69
+ if (args?.environmentName === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'environmentName'");
71
+ }
72
+ if (args?.projectUuid === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'projectUuid'");
74
+ }
75
+ if (args?.serverUuid === undefined && !opts.urn) {
76
+ throw new Error("Missing required property 'serverUuid'");
77
+ }
78
+ resourceInputs["connectToDockerNetwork"] = args?.connectToDockerNetwork;
79
+ resourceInputs["description"] = args?.description;
80
+ resourceInputs["destinationUuid"] = args?.destinationUuid;
81
+ resourceInputs["dockerCompose"] = args?.dockerCompose;
82
+ resourceInputs["environmentName"] = args?.environmentName;
83
+ resourceInputs["environmentVariables"] = args?.environmentVariables;
84
+ resourceInputs["instantDeploy"] = args?.instantDeploy;
85
+ resourceInputs["name"] = args?.name;
86
+ resourceInputs["projectUuid"] = args?.projectUuid;
87
+ resourceInputs["serverUuid"] = args?.serverUuid;
88
+ resourceInputs["type"] = args?.type;
89
+ resourceInputs["uuid"] = undefined /*out*/;
90
+ }
91
+ else {
92
+ resourceInputs["connectToDockerNetwork"] = undefined /*out*/;
93
+ resourceInputs["description"] = undefined /*out*/;
94
+ resourceInputs["destinationUuid"] = undefined /*out*/;
95
+ resourceInputs["dockerCompose"] = undefined /*out*/;
96
+ resourceInputs["environmentName"] = undefined /*out*/;
97
+ resourceInputs["environmentVariables"] = undefined /*out*/;
98
+ resourceInputs["instantDeploy"] = undefined /*out*/;
99
+ resourceInputs["name"] = undefined /*out*/;
100
+ resourceInputs["projectUuid"] = undefined /*out*/;
101
+ resourceInputs["serverUuid"] = undefined /*out*/;
102
+ resourceInputs["type"] = undefined /*out*/;
103
+ resourceInputs["uuid"] = undefined /*out*/;
104
+ }
105
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
106
+ super(Service.__pulumiType, name, resourceInputs, opts);
107
+ }
108
+ }
109
+ exports.Service = Service;
110
+ //# sourceMappingURL=service.js.map
package/service.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,uBAAuB,CAAC;IAE9D;;;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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAmDD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAiB,EAAE,IAAmC;QAC5E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE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