@pulumi/fastly 6.1.0 → 6.2.0-alpha.1678210444
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/fastly",
|
|
3
|
-
"version": "v6.
|
|
3
|
+
"version": "v6.2.0-alpha.1678210444+aad345bf",
|
|
4
4
|
"description": "A Pulumi package for creating and managing fastly cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource fastly v6.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource fastly v6.2.0-alpha.1678210444+aad345bf"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/fastly",
|
|
3
|
-
"version": "v6.
|
|
3
|
+
"version": "v6.2.0-alpha.1678210444+aad345bf",
|
|
4
4
|
"description": "A Pulumi package for creating and managing fastly cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource fastly v6.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource fastly v6.2.0-alpha.1678210444+aad345bf"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/tlsSubscription.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
*
|
|
11
11
|
* > See the [Fastly documentation](https://docs.fastly.com/en/guides/serving-https-traffic-using-fastly-managed-certificates#verifying-domain-ownership) for more information on verifying domain ownership.
|
|
12
12
|
*
|
|
13
|
-
* The
|
|
13
|
+
* The examples below demonstrate usage with AWS Route53 to configure DNS, and the `fastly.TlsSubscriptionValidation` resource to wait for validation to complete.
|
|
14
14
|
*
|
|
15
15
|
* ## Import
|
|
16
16
|
*
|
package/tlsSubscription.js
CHANGED
|
@@ -14,7 +14,7 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* > See the [Fastly documentation](https://docs.fastly.com/en/guides/serving-https-traffic-using-fastly-managed-certificates#verifying-domain-ownership) for more information on verifying domain ownership.
|
|
16
16
|
*
|
|
17
|
-
* The
|
|
17
|
+
* The examples below demonstrate usage with AWS Route53 to configure DNS, and the `fastly.TlsSubscriptionValidation` resource to wait for validation to complete.
|
|
18
18
|
*
|
|
19
19
|
* ## Import
|
|
20
20
|
*
|
|
@@ -5,49 +5,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
* Most commonly, this resource is used together with a resource for a DNS record and `fastly.TlsSubscription` to request a DNS validated certificate, deploy the required validation records and wait for validation to complete.
|
|
6
6
|
*
|
|
7
7
|
* > **Warning:** This resource implements a part of the validation workflow. It does not represent a real-world entity in Fastly, therefore changing or deleting this resource on its own has no immediate effect.
|
|
8
|
-
*
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* DNS Validation with AWS Route53:
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as aws from "@pulumi/aws";
|
|
16
|
-
* import * as fastly from "@pulumi/fastly";
|
|
17
|
-
*
|
|
18
|
-
* const domainName = "example.com";
|
|
19
|
-
* const exampleServiceVcl = new fastly.ServiceVcl("exampleServiceVcl", {
|
|
20
|
-
* domains: [{
|
|
21
|
-
* name: domainName,
|
|
22
|
-
* }],
|
|
23
|
-
* backends: [{
|
|
24
|
-
* address: "127.0.0.1",
|
|
25
|
-
* name: "localhost",
|
|
26
|
-
* }],
|
|
27
|
-
* forceDestroy: true,
|
|
28
|
-
* });
|
|
29
|
-
* const exampleTlsSubscription = new fastly.TlsSubscription("exampleTlsSubscription", {
|
|
30
|
-
* domains: exampleServiceVcl.domains.apply(domains => domains.map(domain => domain.name)),
|
|
31
|
-
* certificateAuthority: "lets-encrypt",
|
|
32
|
-
* });
|
|
33
|
-
* const demo = aws.route53.getZone({
|
|
34
|
-
* name: domainName,
|
|
35
|
-
* privateZone: false,
|
|
36
|
-
* });
|
|
37
|
-
* // Set up DNS record for managed DNS domain validation method
|
|
38
|
-
* const domainValidation = new aws.route53.Record("domainValidation", {
|
|
39
|
-
* name: exampleTlsSubscription.managedDnsChallenge.recordName,
|
|
40
|
-
* type: exampleTlsSubscription.managedDnsChallenge.recordType,
|
|
41
|
-
* zoneId: demo.then(demo => demo.id),
|
|
42
|
-
* allowOverwrite: true,
|
|
43
|
-
* records: [exampleTlsSubscription.managedDnsChallenge.recordValue],
|
|
44
|
-
* ttl: 60,
|
|
45
|
-
* });
|
|
46
|
-
* // Resource that other resources can depend on if they require the certificate to be issued
|
|
47
|
-
* const exampleTlsSubscriptionValidation = new fastly.TlsSubscriptionValidation("exampleTlsSubscriptionValidation", {subscriptionId: exampleTlsSubscription.id}, {
|
|
48
|
-
* dependsOn: [domainValidation],
|
|
49
|
-
* });
|
|
50
|
-
* ```
|
|
51
8
|
*/
|
|
52
9
|
export declare class TlsSubscriptionValidation extends pulumi.CustomResource {
|
|
53
10
|
/**
|
|
@@ -11,49 +11,6 @@ const utilities = require("./utilities");
|
|
|
11
11
|
* Most commonly, this resource is used together with a resource for a DNS record and `fastly.TlsSubscription` to request a DNS validated certificate, deploy the required validation records and wait for validation to complete.
|
|
12
12
|
*
|
|
13
13
|
* > **Warning:** This resource implements a part of the validation workflow. It does not represent a real-world entity in Fastly, therefore changing or deleting this resource on its own has no immediate effect.
|
|
14
|
-
*
|
|
15
|
-
* ## Example Usage
|
|
16
|
-
*
|
|
17
|
-
* DNS Validation with AWS Route53:
|
|
18
|
-
*
|
|
19
|
-
* ```typescript
|
|
20
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
-
* import * as aws from "@pulumi/aws";
|
|
22
|
-
* import * as fastly from "@pulumi/fastly";
|
|
23
|
-
*
|
|
24
|
-
* const domainName = "example.com";
|
|
25
|
-
* const exampleServiceVcl = new fastly.ServiceVcl("exampleServiceVcl", {
|
|
26
|
-
* domains: [{
|
|
27
|
-
* name: domainName,
|
|
28
|
-
* }],
|
|
29
|
-
* backends: [{
|
|
30
|
-
* address: "127.0.0.1",
|
|
31
|
-
* name: "localhost",
|
|
32
|
-
* }],
|
|
33
|
-
* forceDestroy: true,
|
|
34
|
-
* });
|
|
35
|
-
* const exampleTlsSubscription = new fastly.TlsSubscription("exampleTlsSubscription", {
|
|
36
|
-
* domains: exampleServiceVcl.domains.apply(domains => domains.map(domain => domain.name)),
|
|
37
|
-
* certificateAuthority: "lets-encrypt",
|
|
38
|
-
* });
|
|
39
|
-
* const demo = aws.route53.getZone({
|
|
40
|
-
* name: domainName,
|
|
41
|
-
* privateZone: false,
|
|
42
|
-
* });
|
|
43
|
-
* // Set up DNS record for managed DNS domain validation method
|
|
44
|
-
* const domainValidation = new aws.route53.Record("domainValidation", {
|
|
45
|
-
* name: exampleTlsSubscription.managedDnsChallenge.recordName,
|
|
46
|
-
* type: exampleTlsSubscription.managedDnsChallenge.recordType,
|
|
47
|
-
* zoneId: demo.then(demo => demo.id),
|
|
48
|
-
* allowOverwrite: true,
|
|
49
|
-
* records: [exampleTlsSubscription.managedDnsChallenge.recordValue],
|
|
50
|
-
* ttl: 60,
|
|
51
|
-
* });
|
|
52
|
-
* // Resource that other resources can depend on if they require the certificate to be issued
|
|
53
|
-
* const exampleTlsSubscriptionValidation = new fastly.TlsSubscriptionValidation("exampleTlsSubscriptionValidation", {subscriptionId: exampleTlsSubscription.id}, {
|
|
54
|
-
* dependsOn: [domainValidation],
|
|
55
|
-
* });
|
|
56
|
-
* ```
|
|
57
14
|
*/
|
|
58
15
|
class TlsSubscriptionValidation extends pulumi.CustomResource {
|
|
59
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tlsSubscriptionValidation.js","sourceRoot":"","sources":["../tlsSubscriptionValidation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"tlsSubscriptionValidation.js","sourceRoot":"","sources":["../tlsSubscriptionValidation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChF,CAAC;IAKD;;;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,yBAAyB,CAAC,YAAY,CAAC;IAC1E,CAAC;IAeD,YAAY,IAAY,EAAE,WAA4E,EAAE,IAAmC;QACvI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyD,CAAC;YACxE,cAAc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