@pulumi/gcp 6.30.0 → 6.31.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/bigquery/connection.d.ts +14 -14
- package/bigquery/connection.js +14 -14
- package/bigquery/connectionIamBinding.d.ts +214 -0
- package/bigquery/connectionIamBinding.js +155 -0
- package/bigquery/connectionIamBinding.js.map +1 -0
- package/bigquery/connectionIamMember.d.ts +214 -0
- package/bigquery/connectionIamMember.js +155 -0
- package/bigquery/connectionIamMember.js.map +1 -0
- package/bigquery/connectionIamPolicy.d.ts +204 -0
- package/bigquery/connectionIamPolicy.js +148 -0
- package/bigquery/connectionIamPolicy.js.map +1 -0
- package/bigquery/index.d.ts +3 -0
- package/bigquery/index.js +15 -0
- package/bigquery/index.js.map +1 -1
- package/billing/budget.d.ts +46 -0
- package/billing/budget.js +46 -0
- package/billing/budget.js.map +1 -1
- package/certificateauthority/authority.d.ts +85 -23
- package/certificateauthority/authority.js +56 -17
- package/certificateauthority/authority.js.map +1 -1
- package/certificateauthority/certificate.d.ts +14 -5
- package/certificateauthority/certificate.js.map +1 -1
- package/certificateauthority/getAuthority.d.ts +2 -0
- package/certificateauthority/getAuthority.js.map +1 -1
- package/cloudfunctions/function.d.ts +4 -3
- package/cloudfunctions/function.js +1 -0
- package/cloudfunctions/function.js.map +1 -1
- package/cloudfunctionsv2/function.d.ts +6 -2
- package/cloudfunctionsv2/function.js +6 -2
- package/cloudfunctionsv2/function.js.map +1 -1
- package/cloudrun/service.d.ts +424 -0
- package/cloudrun/service.js +424 -0
- package/cloudrun/service.js.map +1 -1
- package/cloudtasks/index.d.ts +3 -0
- package/cloudtasks/index.js +15 -0
- package/cloudtasks/index.js.map +1 -1
- package/cloudtasks/queueIamBinding.d.ts +190 -0
- package/cloudtasks/queueIamBinding.js +149 -0
- package/cloudtasks/queueIamBinding.js.map +1 -0
- package/cloudtasks/queueIamMember.d.ts +190 -0
- package/cloudtasks/queueIamMember.js +149 -0
- package/cloudtasks/queueIamMember.js.map +1 -0
- package/cloudtasks/queueIamPolicy.d.ts +180 -0
- package/cloudtasks/queueIamPolicy.js +142 -0
- package/cloudtasks/queueIamPolicy.js.map +1 -0
- package/compute/globalForwardingRule.d.ts +17 -2
- package/compute/globalForwardingRule.js +17 -2
- package/compute/globalForwardingRule.js.map +1 -1
- package/compute/networkEndpointGroup.d.ts +6 -3
- package/compute/networkEndpointGroup.js.map +1 -1
- package/dataproc/autoscalingPolicyIamBinding.d.ts +208 -0
- package/dataproc/autoscalingPolicyIamBinding.js +155 -0
- package/dataproc/autoscalingPolicyIamBinding.js.map +1 -0
- package/dataproc/autoscalingPolicyIamMember.d.ts +208 -0
- package/dataproc/autoscalingPolicyIamMember.js +155 -0
- package/dataproc/autoscalingPolicyIamMember.js.map +1 -0
- package/dataproc/autoscalingPolicyIamPolicy.d.ts +198 -0
- package/dataproc/autoscalingPolicyIamPolicy.js +148 -0
- package/dataproc/autoscalingPolicyIamPolicy.js.map +1 -0
- package/dataproc/index.d.ts +6 -0
- package/dataproc/index.js +30 -0
- package/dataproc/index.js.map +1 -1
- package/dataproc/metastoreServiceIamBinding.d.ts +130 -0
- package/dataproc/metastoreServiceIamBinding.js +95 -0
- package/dataproc/metastoreServiceIamBinding.js.map +1 -0
- package/dataproc/metastoreServiceIamMember.d.ts +130 -0
- package/dataproc/metastoreServiceIamMember.js +95 -0
- package/dataproc/metastoreServiceIamMember.js.map +1 -0
- package/dataproc/metastoreServiceIamPolicy.d.ts +120 -0
- package/dataproc/metastoreServiceIamPolicy.js +88 -0
- package/dataproc/metastoreServiceIamPolicy.js.map +1 -0
- package/logging/projectSink.d.ts +80 -0
- package/logging/projectSink.js +80 -0
- package/logging/projectSink.js.map +1 -1
- package/monitoring/monitoredProject.d.ts +2 -6
- package/monitoring/monitoredProject.js +2 -6
- package/monitoring/monitoredProject.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projects/serviceIdentity.d.ts +4 -0
- package/projects/serviceIdentity.js +1 -1
- package/projects/serviceIdentity.js.map +1 -1
- package/redis/getInstance.d.ts +1 -0
- package/redis/getInstance.js.map +1 -1
- package/redis/instance.d.ts +42 -0
- package/redis/instance.js +29 -0
- package/redis/instance.js.map +1 -1
- package/spanner/database.d.ts +44 -12
- package/spanner/database.js +13 -0
- package/spanner/database.js.map +1 -1
- package/sql/getBackupRun.d.ts +11 -0
- package/sql/getBackupRun.js +1 -0
- package/sql/getBackupRun.js.map +1 -1
- package/types/input.d.ts +144 -7
- package/types/output.d.ts +162 -11
package/cloudrun/service.js
CHANGED
|
@@ -230,6 +230,84 @@ const utilities = require("../utilities");
|
|
|
230
230
|
* ],
|
|
231
231
|
* });
|
|
232
232
|
* ```
|
|
233
|
+
* ### Cloud Run Service Scheduled
|
|
234
|
+
*
|
|
235
|
+
* ```typescript
|
|
236
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
237
|
+
* import * as gcp from "@pulumi/gcp";
|
|
238
|
+
*
|
|
239
|
+
* const runApi = new gcp.projects.Service("runApi", {
|
|
240
|
+
* project: "my-project-name",
|
|
241
|
+
* service: "run.googleapis.com",
|
|
242
|
+
* disableDependentServices: true,
|
|
243
|
+
* disableOnDestroy: false,
|
|
244
|
+
* });
|
|
245
|
+
* const iamApi = new gcp.projects.Service("iamApi", {
|
|
246
|
+
* project: "my-project-name",
|
|
247
|
+
* service: "iam.googleapis.com",
|
|
248
|
+
* disableOnDestroy: false,
|
|
249
|
+
* });
|
|
250
|
+
* const resourceManagerApi = new gcp.projects.Service("resourceManagerApi", {
|
|
251
|
+
* project: "my-project-name",
|
|
252
|
+
* service: "cloudresourcemanager.googleapis.com",
|
|
253
|
+
* disableOnDestroy: false,
|
|
254
|
+
* });
|
|
255
|
+
* const schedulerApi = new gcp.projects.Service("schedulerApi", {
|
|
256
|
+
* project: "my-project-name",
|
|
257
|
+
* service: "cloudscheduler.googleapis.com",
|
|
258
|
+
* disableOnDestroy: false,
|
|
259
|
+
* });
|
|
260
|
+
* const defaultService = new gcp.cloudrun.Service("defaultService", {
|
|
261
|
+
* project: "my-project-name",
|
|
262
|
+
* location: "us-central1",
|
|
263
|
+
* template: {
|
|
264
|
+
* spec: {
|
|
265
|
+
* containers: [{
|
|
266
|
+
* image: "us-docker.pkg.dev/cloudrun/container/hello",
|
|
267
|
+
* }],
|
|
268
|
+
* },
|
|
269
|
+
* },
|
|
270
|
+
* traffics: [{
|
|
271
|
+
* percent: 100,
|
|
272
|
+
* latestRevision: true,
|
|
273
|
+
* }],
|
|
274
|
+
* }, {
|
|
275
|
+
* dependsOn: [runApi],
|
|
276
|
+
* });
|
|
277
|
+
* const defaultAccount = new gcp.serviceaccount.Account("defaultAccount", {
|
|
278
|
+
* project: "my-project-name",
|
|
279
|
+
* accountId: "scheduler-sa",
|
|
280
|
+
* description: "Cloud Scheduler service account; used to trigger scheduled Cloud Run jobs.",
|
|
281
|
+
* displayName: "scheduler-sa",
|
|
282
|
+
* }, {
|
|
283
|
+
* dependsOn: [iamApi],
|
|
284
|
+
* });
|
|
285
|
+
* const defaultJob = new gcp.cloudscheduler.Job("defaultJob", {
|
|
286
|
+
* description: "Invoke a Cloud Run container on a schedule.",
|
|
287
|
+
* schedule: "*/8 * * * *",
|
|
288
|
+
* timeZone: "America/New_York",
|
|
289
|
+
* attemptDeadline: "320s",
|
|
290
|
+
* retryConfig: {
|
|
291
|
+
* retryCount: 1,
|
|
292
|
+
* },
|
|
293
|
+
* httpTarget: {
|
|
294
|
+
* httpMethod: "POST",
|
|
295
|
+
* uri: defaultService.statuses.apply(statuses => `${statuses[0].url}/`),
|
|
296
|
+
* oidcToken: {
|
|
297
|
+
* serviceAccountEmail: defaultAccount.email,
|
|
298
|
+
* },
|
|
299
|
+
* },
|
|
300
|
+
* }, {
|
|
301
|
+
* dependsOn: [schedulerApi],
|
|
302
|
+
* });
|
|
303
|
+
* const defaultIamMember = new gcp.cloudrun.IamMember("defaultIamMember", {
|
|
304
|
+
* project: "my-project-name",
|
|
305
|
+
* location: defaultService.location,
|
|
306
|
+
* service: defaultService.name,
|
|
307
|
+
* role: "roles/run.invoker",
|
|
308
|
+
* member: pulumi.interpolate`serviceAccount:${defaultAccount.email}`,
|
|
309
|
+
* });
|
|
310
|
+
* ```
|
|
233
311
|
* ### Cloud Run Service Secret Environment Variables
|
|
234
312
|
*
|
|
235
313
|
* ```typescript
|
|
@@ -349,6 +427,34 @@ const utilities = require("../utilities");
|
|
|
349
427
|
* dependsOn: [secret_version_data],
|
|
350
428
|
* });
|
|
351
429
|
* ```
|
|
430
|
+
* ### Cloud Run Service Ingress
|
|
431
|
+
*
|
|
432
|
+
* ```typescript
|
|
433
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
434
|
+
* import * as gcp from "@pulumi/gcp";
|
|
435
|
+
*
|
|
436
|
+
* const defaultService = new gcp.cloudrun.Service("default", {
|
|
437
|
+
* location: "us-central1",
|
|
438
|
+
* metadata: {
|
|
439
|
+
* annotations: {
|
|
440
|
+
* // For valid annotation values and descriptions, see
|
|
441
|
+
* // https://cloud.google.com/sdk/gcloud/reference/run/deploy#--ingress
|
|
442
|
+
* "run.googleapis.com/ingress": "internal",
|
|
443
|
+
* },
|
|
444
|
+
* },
|
|
445
|
+
* template: {
|
|
446
|
+
* spec: {
|
|
447
|
+
* containers: [{
|
|
448
|
+
* image: "gcr.io/cloudrun/hello", //public image for your service
|
|
449
|
+
* }],
|
|
450
|
+
* },
|
|
451
|
+
* },
|
|
452
|
+
* traffics: [{
|
|
453
|
+
* latestRevision: true,
|
|
454
|
+
* percent: 100,
|
|
455
|
+
* }],
|
|
456
|
+
* });
|
|
457
|
+
* ```
|
|
352
458
|
* ### Eventarc Basic Tf
|
|
353
459
|
*
|
|
354
460
|
* ```typescript
|
|
@@ -452,6 +558,324 @@ const utilities = require("../utilities");
|
|
|
452
558
|
* dependsOn: [eventarc],
|
|
453
559
|
* });
|
|
454
560
|
* ```
|
|
561
|
+
* ### Cloud Run Service Multiple Regions
|
|
562
|
+
*
|
|
563
|
+
* ```typescript
|
|
564
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
565
|
+
* import * as gcp from "@pulumi/gcp";
|
|
566
|
+
*
|
|
567
|
+
* // Cloud Run service replicated across multiple GCP regions
|
|
568
|
+
* const computeApi = new gcp.projects.Service("computeApi", {
|
|
569
|
+
* project: "my-project-name",
|
|
570
|
+
* service: "compute.googleapis.com",
|
|
571
|
+
* disableDependentServices: true,
|
|
572
|
+
* disableOnDestroy: false,
|
|
573
|
+
* });
|
|
574
|
+
* const runApi = new gcp.projects.Service("runApi", {
|
|
575
|
+
* project: "my-project-name",
|
|
576
|
+
* service: "run.googleapis.com",
|
|
577
|
+
* disableDependentServices: true,
|
|
578
|
+
* disableOnDestroy: false,
|
|
579
|
+
* });
|
|
580
|
+
* const config = new pulumi.Config();
|
|
581
|
+
* const domainName = config.get("domainName") || "example.com";
|
|
582
|
+
* const runRegions = config.getObject("runRegions") || [
|
|
583
|
+
* "us-central1",
|
|
584
|
+
* "europe-west1",
|
|
585
|
+
* ];
|
|
586
|
+
* const lbDefaultGlobalAddress = new gcp.compute.GlobalAddress("lbDefaultGlobalAddress", {project: "my-project-name"}, {
|
|
587
|
+
* dependsOn: [computeApi],
|
|
588
|
+
* });
|
|
589
|
+
* const runDefault: gcp.cloudrun.Service[];
|
|
590
|
+
* for (const range = {value: 0}; range.value < runRegions.length; range.value++) {
|
|
591
|
+
* runDefault.push(new gcp.cloudrun.Service(`runDefault-${range.value}`, {
|
|
592
|
+
* project: "my-project-name",
|
|
593
|
+
* location: runRegions[range.value],
|
|
594
|
+
* template: {
|
|
595
|
+
* spec: {
|
|
596
|
+
* containers: [{
|
|
597
|
+
* image: "us-docker.pkg.dev/cloudrun/container/hello",
|
|
598
|
+
* }],
|
|
599
|
+
* },
|
|
600
|
+
* },
|
|
601
|
+
* traffics: [{
|
|
602
|
+
* percent: 100,
|
|
603
|
+
* latestRevision: true,
|
|
604
|
+
* }],
|
|
605
|
+
* }, {
|
|
606
|
+
* dependsOn: [runApi],
|
|
607
|
+
* }));
|
|
608
|
+
* }
|
|
609
|
+
* const lbDefaultRegionNetworkEndpointGroup: gcp.compute.RegionNetworkEndpointGroup[];
|
|
610
|
+
* for (const range = {value: 0}; range.value < runRegions.length; range.value++) {
|
|
611
|
+
* lbDefaultRegionNetworkEndpointGroup.push(new gcp.compute.RegionNetworkEndpointGroup(`lbDefaultRegionNetworkEndpointGroup-${range.value}`, {
|
|
612
|
+
* project: "my-project-name",
|
|
613
|
+
* networkEndpointType: "SERVERLESS",
|
|
614
|
+
* region: runRegions[range.value],
|
|
615
|
+
* cloudRun: {
|
|
616
|
+
* service: runDefault[count.index].name,
|
|
617
|
+
* },
|
|
618
|
+
* }));
|
|
619
|
+
* }
|
|
620
|
+
* const lbDefaultBackendService = new gcp.compute.BackendService("lbDefaultBackendService", {
|
|
621
|
+
* project: "my-project-name",
|
|
622
|
+
* loadBalancingScheme: "EXTERNAL_MANAGED",
|
|
623
|
+
* backends: [
|
|
624
|
+
* {
|
|
625
|
+
* balancingMode: "UTILIZATION",
|
|
626
|
+
* capacityScaler: 0.85,
|
|
627
|
+
* group: lbDefaultRegionNetworkEndpointGroup[0].id,
|
|
628
|
+
* },
|
|
629
|
+
* {
|
|
630
|
+
* balancingMode: "UTILIZATION",
|
|
631
|
+
* capacityScaler: 0.85,
|
|
632
|
+
* group: lbDefaultRegionNetworkEndpointGroup[1].id,
|
|
633
|
+
* },
|
|
634
|
+
* ],
|
|
635
|
+
* }, {
|
|
636
|
+
* dependsOn: [computeApi],
|
|
637
|
+
* });
|
|
638
|
+
* const lbDefaultURLMap = new gcp.compute.URLMap("lbDefaultURLMap", {
|
|
639
|
+
* project: "my-project-name",
|
|
640
|
+
* defaultService: lbDefaultBackendService.id,
|
|
641
|
+
* pathMatchers: [{
|
|
642
|
+
* name: "allpaths",
|
|
643
|
+
* defaultService: lbDefaultBackendService.id,
|
|
644
|
+
* routeRules: [{
|
|
645
|
+
* priority: 1,
|
|
646
|
+
* urlRedirect: {
|
|
647
|
+
* httpsRedirect: true,
|
|
648
|
+
* redirectResponseCode: "MOVED_PERMANENTLY_DEFAULT",
|
|
649
|
+
* },
|
|
650
|
+
* }],
|
|
651
|
+
* }],
|
|
652
|
+
* });
|
|
653
|
+
* const lbDefaultManagedSslCertificate = new gcp.compute.ManagedSslCertificate("lbDefaultManagedSslCertificate", {
|
|
654
|
+
* project: "my-project-name",
|
|
655
|
+
* managed: {
|
|
656
|
+
* domains: [domainName],
|
|
657
|
+
* },
|
|
658
|
+
* });
|
|
659
|
+
* const lbDefaultTargetHttpsProxy = new gcp.compute.TargetHttpsProxy("lbDefaultTargetHttpsProxy", {
|
|
660
|
+
* project: "my-project-name",
|
|
661
|
+
* urlMap: lbDefaultURLMap.id,
|
|
662
|
+
* sslCertificates: [lbDefaultManagedSslCertificate.name],
|
|
663
|
+
* }, {
|
|
664
|
+
* dependsOn: [lbDefaultManagedSslCertificate],
|
|
665
|
+
* });
|
|
666
|
+
* const lbDefaultGlobalForwardingRule = new gcp.compute.GlobalForwardingRule("lbDefaultGlobalForwardingRule", {
|
|
667
|
+
* project: "my-project-name",
|
|
668
|
+
* loadBalancingScheme: "EXTERNAL_MANAGED",
|
|
669
|
+
* target: lbDefaultTargetHttpsProxy.id,
|
|
670
|
+
* ipAddress: lbDefaultGlobalAddress.id,
|
|
671
|
+
* portRange: "443",
|
|
672
|
+
* }, {
|
|
673
|
+
* dependsOn: [lbDefaultTargetHttpsProxy],
|
|
674
|
+
* });
|
|
675
|
+
* export const loadBalancerIpAddr = lbDefaultGlobalAddress.address;
|
|
676
|
+
* const runAllowUnauthenticated: gcp.cloudrun.IamMember[];
|
|
677
|
+
* for (const range = {value: 0}; range.value < runRegions.length; range.value++) {
|
|
678
|
+
* runAllowUnauthenticated.push(new gcp.cloudrun.IamMember(`runAllowUnauthenticated-${range.value}`, {
|
|
679
|
+
* project: "my-project-name",
|
|
680
|
+
* location: runDefault[range.value].location,
|
|
681
|
+
* service: runDefault[range.value].name,
|
|
682
|
+
* role: "roles/run.invoker",
|
|
683
|
+
* member: "allUsers",
|
|
684
|
+
* }));
|
|
685
|
+
* }
|
|
686
|
+
* const httpsDefaultURLMap = new gcp.compute.URLMap("httpsDefaultURLMap", {
|
|
687
|
+
* project: "my-project-name",
|
|
688
|
+
* defaultUrlRedirect: {
|
|
689
|
+
* redirectResponseCode: "MOVED_PERMANENTLY_DEFAULT",
|
|
690
|
+
* httpsRedirect: true,
|
|
691
|
+
* stripQuery: false,
|
|
692
|
+
* },
|
|
693
|
+
* });
|
|
694
|
+
* const httpsDefaultTargetHttpProxy = new gcp.compute.TargetHttpProxy("httpsDefaultTargetHttpProxy", {
|
|
695
|
+
* project: "my-project-name",
|
|
696
|
+
* urlMap: httpsDefaultURLMap.id,
|
|
697
|
+
* }, {
|
|
698
|
+
* dependsOn: [httpsDefaultURLMap],
|
|
699
|
+
* });
|
|
700
|
+
* const httpsDefaultGlobalForwardingRule = new gcp.compute.GlobalForwardingRule("httpsDefaultGlobalForwardingRule", {
|
|
701
|
+
* project: "my-project-name",
|
|
702
|
+
* target: httpsDefaultTargetHttpProxy.id,
|
|
703
|
+
* ipAddress: lbDefaultGlobalAddress.id,
|
|
704
|
+
* portRange: "80",
|
|
705
|
+
* }, {
|
|
706
|
+
* dependsOn: [httpsDefaultTargetHttpProxy],
|
|
707
|
+
* });
|
|
708
|
+
* ```
|
|
709
|
+
* ### Cloud Run Service Remove Tag
|
|
710
|
+
*
|
|
711
|
+
* ```typescript
|
|
712
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
713
|
+
* import * as gcp from "@pulumi/gcp";
|
|
714
|
+
*
|
|
715
|
+
* const defaultService = new gcp.cloudrun.Service("default", {
|
|
716
|
+
* location: "us-central1",
|
|
717
|
+
* template: {},
|
|
718
|
+
* traffics: [
|
|
719
|
+
* {
|
|
720
|
+
* percent: 100,
|
|
721
|
+
* // This revision needs to already exist
|
|
722
|
+
* revisionName: "cloudrun-srv-green",
|
|
723
|
+
* },
|
|
724
|
+
* {
|
|
725
|
+
* // No tags for this revision
|
|
726
|
+
* // Keep revision at 0% traffic
|
|
727
|
+
* percent: 0,
|
|
728
|
+
* // This revision needs to already exist
|
|
729
|
+
* revisionName: "cloudrun-srv-blue",
|
|
730
|
+
* },
|
|
731
|
+
* ],
|
|
732
|
+
* });
|
|
733
|
+
* ```
|
|
734
|
+
* ### Cloud Run Service Deploy Tag
|
|
735
|
+
*
|
|
736
|
+
* ```typescript
|
|
737
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
738
|
+
* import * as gcp from "@pulumi/gcp";
|
|
739
|
+
*
|
|
740
|
+
* const defaultService = new gcp.cloudrun.Service("default", {
|
|
741
|
+
* location: "us-central1",
|
|
742
|
+
* template: {
|
|
743
|
+
* metadata: {
|
|
744
|
+
* name: "cloudrun-srv-blue",
|
|
745
|
+
* },
|
|
746
|
+
* spec: {
|
|
747
|
+
* containers: [{
|
|
748
|
+
* // image or tag must be different from previous revision
|
|
749
|
+
* image: "us-docker.pkg.dev/cloudrun/container/hello",
|
|
750
|
+
* }],
|
|
751
|
+
* },
|
|
752
|
+
* },
|
|
753
|
+
* traffics: [
|
|
754
|
+
* {
|
|
755
|
+
* percent: 100,
|
|
756
|
+
* // This revision needs to already exist
|
|
757
|
+
* revisionName: "cloudrun-srv-green",
|
|
758
|
+
* },
|
|
759
|
+
* {
|
|
760
|
+
* // Deploy new revision with 0% traffic
|
|
761
|
+
* percent: 0,
|
|
762
|
+
* revisionName: "cloudrun-srv-blue",
|
|
763
|
+
* tag: "tag-name",
|
|
764
|
+
* },
|
|
765
|
+
* ],
|
|
766
|
+
* });
|
|
767
|
+
* ```
|
|
768
|
+
* ### Cloud Run Service Add Tag
|
|
769
|
+
*
|
|
770
|
+
* ```typescript
|
|
771
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
772
|
+
* import * as gcp from "@pulumi/gcp";
|
|
773
|
+
*
|
|
774
|
+
* const defaultService = new gcp.cloudrun.Service("default", {
|
|
775
|
+
* location: "us-central1",
|
|
776
|
+
* template: {},
|
|
777
|
+
* traffics: [
|
|
778
|
+
* {
|
|
779
|
+
* percent: 100,
|
|
780
|
+
* // This revision needs to already exist
|
|
781
|
+
* revisionName: "cloudrun-srv-green",
|
|
782
|
+
* },
|
|
783
|
+
* {
|
|
784
|
+
* // Deploy new revision with 0% traffic
|
|
785
|
+
* percent: 0,
|
|
786
|
+
* revisionName: "cloudrun-srv-blue",
|
|
787
|
+
* tag: "tag-name",
|
|
788
|
+
* },
|
|
789
|
+
* ],
|
|
790
|
+
* });
|
|
791
|
+
* ```
|
|
792
|
+
* ### Cloud Run Service Traffic Gradual Rollout
|
|
793
|
+
*
|
|
794
|
+
* ```typescript
|
|
795
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
796
|
+
* import * as gcp from "@pulumi/gcp";
|
|
797
|
+
*
|
|
798
|
+
* const defaultService = new gcp.cloudrun.Service("default", {
|
|
799
|
+
* autogenerateRevisionName: true,
|
|
800
|
+
* location: "us-central1",
|
|
801
|
+
* template: {
|
|
802
|
+
* spec: {
|
|
803
|
+
* containers: [{
|
|
804
|
+
* // Image or image tag must be different from previous revision
|
|
805
|
+
* image: "us-docker.pkg.dev/cloudrun/container/hello",
|
|
806
|
+
* }],
|
|
807
|
+
* },
|
|
808
|
+
* },
|
|
809
|
+
* traffics: [
|
|
810
|
+
* {
|
|
811
|
+
* percent: 100,
|
|
812
|
+
* // This revision needs to already exist
|
|
813
|
+
* revisionName: "cloudrun-srv-green",
|
|
814
|
+
* },
|
|
815
|
+
* {
|
|
816
|
+
* latestRevision: true,
|
|
817
|
+
* // Deploy new revision with 0% traffic
|
|
818
|
+
* percent: 0,
|
|
819
|
+
* },
|
|
820
|
+
* ],
|
|
821
|
+
* });
|
|
822
|
+
* ```
|
|
823
|
+
* ### Cloud Run Service Traffic Latest Revision
|
|
824
|
+
*
|
|
825
|
+
* ```typescript
|
|
826
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
827
|
+
* import * as gcp from "@pulumi/gcp";
|
|
828
|
+
*
|
|
829
|
+
* const defaultService = new gcp.cloudrun.Service("default", {
|
|
830
|
+
* location: "us-central1",
|
|
831
|
+
* template: {},
|
|
832
|
+
* traffics: [{
|
|
833
|
+
* latestRevision: true,
|
|
834
|
+
* percent: 100,
|
|
835
|
+
* }],
|
|
836
|
+
* });
|
|
837
|
+
* ```
|
|
838
|
+
* ### Cloud Run Service Traffic Rollback
|
|
839
|
+
*
|
|
840
|
+
* ```typescript
|
|
841
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
842
|
+
* import * as gcp from "@pulumi/gcp";
|
|
843
|
+
*
|
|
844
|
+
* const defaultService = new gcp.cloudrun.Service("default", {
|
|
845
|
+
* location: "us-central1",
|
|
846
|
+
* template: {},
|
|
847
|
+
* traffics: [{
|
|
848
|
+
* percent: 100,
|
|
849
|
+
* // This revision needs to already exist
|
|
850
|
+
* revisionName: "cloudrun-srv-green",
|
|
851
|
+
* }],
|
|
852
|
+
* });
|
|
853
|
+
* ```
|
|
854
|
+
* ### Cloud Run Service Traffic Split Tag
|
|
855
|
+
*
|
|
856
|
+
* ```typescript
|
|
857
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
858
|
+
* import * as gcp from "@pulumi/gcp";
|
|
859
|
+
*
|
|
860
|
+
* const defaultService = new gcp.cloudrun.Service("default", {
|
|
861
|
+
* location: "us-central1",
|
|
862
|
+
* template: {},
|
|
863
|
+
* traffics: [
|
|
864
|
+
* {
|
|
865
|
+
* // Update revision to 50% traffic
|
|
866
|
+
* percent: 50,
|
|
867
|
+
* // This revision needs to already exist
|
|
868
|
+
* revisionName: "cloudrun-srv-green",
|
|
869
|
+
* },
|
|
870
|
+
* {
|
|
871
|
+
* // Update tag to 50% traffic
|
|
872
|
+
* percent: 50,
|
|
873
|
+
* // This tag needs to already exist
|
|
874
|
+
* tag: "tag-name",
|
|
875
|
+
* },
|
|
876
|
+
* ],
|
|
877
|
+
* });
|
|
878
|
+
* ```
|
|
455
879
|
*
|
|
456
880
|
* ## Import
|
|
457
881
|
*
|
package/cloudrun/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../cloudrun/service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../cloudrun/service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAnHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BAqHC;AAvGG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
|
package/cloudtasks/index.d.ts
CHANGED
package/cloudtasks/index.js
CHANGED
|
@@ -20,18 +20,33 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
20
20
|
const utilities = require("../utilities");
|
|
21
21
|
// Export members:
|
|
22
22
|
__exportStar(require("./queue"), exports);
|
|
23
|
+
__exportStar(require("./queueIamBinding"), exports);
|
|
24
|
+
__exportStar(require("./queueIamMember"), exports);
|
|
25
|
+
__exportStar(require("./queueIamPolicy"), exports);
|
|
23
26
|
// Import resources to register:
|
|
24
27
|
const queue_1 = require("./queue");
|
|
28
|
+
const queueIamBinding_1 = require("./queueIamBinding");
|
|
29
|
+
const queueIamMember_1 = require("./queueIamMember");
|
|
30
|
+
const queueIamPolicy_1 = require("./queueIamPolicy");
|
|
25
31
|
const _module = {
|
|
26
32
|
version: utilities.getVersion(),
|
|
27
33
|
construct: (name, type, urn) => {
|
|
28
34
|
switch (type) {
|
|
29
35
|
case "gcp:cloudtasks/queue:Queue":
|
|
30
36
|
return new queue_1.Queue(name, undefined, { urn });
|
|
37
|
+
case "gcp:cloudtasks/queueIamBinding:QueueIamBinding":
|
|
38
|
+
return new queueIamBinding_1.QueueIamBinding(name, undefined, { urn });
|
|
39
|
+
case "gcp:cloudtasks/queueIamMember:QueueIamMember":
|
|
40
|
+
return new queueIamMember_1.QueueIamMember(name, undefined, { urn });
|
|
41
|
+
case "gcp:cloudtasks/queueIamPolicy:QueueIamPolicy":
|
|
42
|
+
return new queueIamPolicy_1.QueueIamPolicy(name, undefined, { urn });
|
|
31
43
|
default:
|
|
32
44
|
throw new Error(`unknown resource type ${type}`);
|
|
33
45
|
}
|
|
34
46
|
},
|
|
35
47
|
};
|
|
36
48
|
pulumi.runtime.registerResourceModule("gcp", "cloudtasks/queue", _module);
|
|
49
|
+
pulumi.runtime.registerResourceModule("gcp", "cloudtasks/queueIamBinding", _module);
|
|
50
|
+
pulumi.runtime.registerResourceModule("gcp", "cloudtasks/queueIamMember", _module);
|
|
51
|
+
pulumi.runtime.registerResourceModule("gcp", "cloudtasks/queueIamPolicy", _module);
|
|
37
52
|
//# sourceMappingURL=index.js.map
|
package/cloudtasks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../cloudtasks/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,0CAAwB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../cloudtasks/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,0CAAwB;AACxB,oDAAkC;AAClC,mDAAiC;AACjC,mDAAiC;AAEjC,gCAAgC;AAChC,mCAAgC;AAChC,uDAAoD;AACpD,qDAAkD;AAClD,qDAAk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