@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.
- package/dist/AppComponent.d.ts +2 -0
- package/dist/AppComponent.js +6 -2
- package/package.json +1 -1
package/dist/AppComponent.d.ts
CHANGED
|
@@ -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;
|
package/dist/AppComponent.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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
|