@pattform/api-kit 3.0.0 → 3.1.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.
@@ -22,6 +22,8 @@ export interface AppComponentArgs {
22
22
  [key: string]: pulumi.Input<string>;
23
23
  };
24
24
  manageValidationRecord?: boolean;
25
+ githubToken?: pulumi.Input<string>;
26
+ cloudflareApiToken?: pulumi.Input<string>;
25
27
  }
26
28
  export interface DnsRecordInstruction {
27
29
  name: string;
@@ -14,9 +14,13 @@ class AppComponent extends pulumi.ComponentResource {
14
14
  const awsAccessKey = awsConfig.getSecret("accessKey");
15
15
  const awsSecretKey = awsConfig.getSecret("secretKey");
16
16
  const githubConfig = new pulumi.Config("github");
17
- const githubToken = githubConfig.requireSecret("apiToken");
17
+ const githubToken = args.githubToken
18
+ ? pulumi.secret(args.githubToken)
19
+ : githubConfig.requireSecret("apiToken");
18
20
  const cloudFlareConfig = new pulumi.Config("cloudflare");
19
- const cloudFrontToken = cloudFlareConfig.getSecret("apiToken");
21
+ const cloudFrontToken = args.cloudflareApiToken
22
+ ? pulumi.secret(args.cloudflareApiToken)
23
+ : cloudFlareConfig.getSecret("apiToken");
20
24
  const appName = pulumi.getProject();
21
25
  const env = pulumi.getStack();
22
26
  // DNS is managed in Cloudflare unless the client owns their domain
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pattform/api-kit",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Pulumi infra library for building and deploying an API",
5
5
  "author": "Pattform <contact@pattform.io>",
6
6
  "license": "SEE LICENSE IN LICENSE",