@tahminator/pipeline 1.0.65 → 1.0.67-beta.94b91d0f

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.
@@ -29,6 +29,8 @@ export class PulumiClient {
29
29
  switch (args.strategy) {
30
30
  case PulumiClientStrategy.AZURE:
31
31
  return new this(await LocalWorkspacePulumiClientStrategy.create(args));
32
+ case PulumiClientStrategy.CLOUDFLARE:
33
+ return new this(await LocalWorkspacePulumiClientStrategy.create(args));
32
34
  }
33
35
  }
34
36
  async up() {
@@ -1,7 +1,8 @@
1
1
  import type { LocalProgramArgs } from "@pulumi/pulumi/automation";
2
2
  import type { LiteralUnion } from "../types";
3
3
  export declare enum PulumiClientStrategy {
4
- AZURE = 0
4
+ AZURE = 0,
5
+ CLOUDFLARE = 1
5
6
  }
6
7
  export interface IPulumiClientStrategyArgs {
7
8
  strategy: PulumiClientStrategy;
@@ -19,5 +20,14 @@ export interface PulumiClientAzureStrategyArgs extends IPulumiClientStrategyArgs
19
20
  [_: string]: string | undefined;
20
21
  };
21
22
  }
22
- export type PulumiClientStrategiesArgs = PulumiClientAzureStrategyArgs;
23
+ export interface PulumiClientCloudflareStrategyArgs extends IPulumiClientStrategyArgs, LocalProgramArgs {
24
+ strategy: PulumiClientStrategy.CLOUDFLARE;
25
+ envs: {
26
+ AWS_ACCESS_KEY_ID?: string;
27
+ AWS_SECRET_ACCESS_KEY?: string;
28
+ PULUMI_BACKEND_URL: LiteralUnion<`s3://${string}?endpoint=${string}.r2.cloudflarestorage.com${string}`>;
29
+ [_: string]: string | undefined;
30
+ };
31
+ }
32
+ export type PulumiClientStrategiesArgs = PulumiClientAzureStrategyArgs | PulumiClientCloudflareStrategyArgs;
23
33
  export type PulumiClientCreateArgs = PulumiClientStrategiesArgs & LocalProgramArgs;
@@ -1,4 +1,5 @@
1
1
  export var PulumiClientStrategy;
2
2
  (function (PulumiClientStrategy) {
3
3
  PulumiClientStrategy[PulumiClientStrategy["AZURE"] = 0] = "AZURE";
4
+ PulumiClientStrategy[PulumiClientStrategy["CLOUDFLARE"] = 1] = "CLOUDFLARE";
4
5
  })(PulumiClientStrategy || (PulumiClientStrategy = {}));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "author": "Tahmid Ahmed",
5
5
  "description": "A collection of Bun shell scripts that can be re-used in various CICD pipelines.",
6
- "version": "1.0.65",
6
+ "version": "1.0.67-beta.94b91d0f",
7
7
  "repository": {
8
8
  "url": "git+https://github.com/tahminator/pipeline.git"
9
9
  },