pulumi-gcp 7.24.0a1716588893__py3-none-any.whl → 7.25.0a1717097889__py3-none-any.whl
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.
- pulumi_gcp/accesscontextmanager/service_perimeter_egress_policy.py +0 -64
- pulumi_gcp/accesscontextmanager/service_perimeter_ingress_policy.py +0 -70
- pulumi_gcp/alloydb/backup.py +50 -42
- pulumi_gcp/alloydb/cluster.py +56 -48
- pulumi_gcp/alloydb/instance.py +50 -42
- pulumi_gcp/alloydb/user.py +32 -24
- pulumi_gcp/apigateway/api_config.py +0 -114
- pulumi_gcp/apigateway/gateway.py +0 -44
- pulumi_gcp/apigee/addons_config.py +14 -4
- pulumi_gcp/apigee/endpoint_attachment.py +4 -2
- pulumi_gcp/apigee/env_group.py +4 -2
- pulumi_gcp/apigee/environment.py +4 -2
- pulumi_gcp/apigee/instance.py +22 -8
- pulumi_gcp/apigee/keystores_aliases_self_signed_cert.py +26 -10
- pulumi_gcp/apigee/nat_address.py +10 -2
- pulumi_gcp/apigee/organization.py +18 -6
- pulumi_gcp/apigee/sync_authorization.py +8 -4
- pulumi_gcp/apigee/target_server.py +26 -10
- pulumi_gcp/apphub/service.py +40 -20
- pulumi_gcp/apphub/service_project_attachment.py +16 -8
- pulumi_gcp/apphub/workload.py +0 -418
- pulumi_gcp/applicationintegration/auth_config.py +4 -2
- pulumi_gcp/artifactregistry/repository.py +14 -12
- pulumi_gcp/backupdisasterrecovery/management_server.py +4 -2
- pulumi_gcp/bigquery/data_transfer_config.py +8 -4
- pulumi_gcp/bigquery/job.py +22 -16
- pulumi_gcp/certificateauthority/authority.py +10 -2
- pulumi_gcp/certificateauthority/certificate.py +8 -4
- pulumi_gcp/certificatemanager/certificate.py +84 -80
- pulumi_gcp/certificatemanager/certificate_issuance_config.py +32 -30
- pulumi_gcp/cloudbuild/bitbucket_server_config.py +12 -6
- pulumi_gcp/cloudbuild/trigger.py +22 -14
- pulumi_gcp/cloudbuild/worker_pool.py +12 -6
- pulumi_gcp/cloudbuildv2/connection.py +10 -2
- pulumi_gcp/cloudbuildv2/repository.py +10 -2
- pulumi_gcp/cloudfunctionsv2/function.py +110 -62
- pulumi_gcp/cloudids/endpoint.py +4 -2
- pulumi_gcp/cloudrunv2/job.py +32 -20
- pulumi_gcp/cloudrunv2/service.py +28 -20
- pulumi_gcp/compute/forwarding_rule.py +225 -817
- pulumi_gcp/compute/global_forwarding_rule.py +0 -766
- pulumi_gcp/compute/instance_group.py +0 -100
- pulumi_gcp/compute/packet_mirroring.py +4 -2
- pulumi_gcp/compute/region_security_policy_rule.py +4 -2
- pulumi_gcp/compute/region_ssl_certificate.py +0 -188
- pulumi_gcp/compute/route.py +10 -2
- pulumi_gcp/compute/ssl_certificate.py +0 -166
- pulumi_gcp/compute/target_instance.py +4 -2
- pulumi_gcp/compute/vpn_gateway.py +12 -2
- pulumi_gcp/compute/vpn_tunnel.py +26 -16
- pulumi_gcp/databasemigrationservice/connection_profile.py +32 -16
- pulumi_gcp/datacatalog/policy_tag.py +4 -2
- pulumi_gcp/datafusion/instance.py +14 -12
- pulumi_gcp/dataplex/asset.py +4 -2
- pulumi_gcp/dataplex/datascan.py +16 -14
- pulumi_gcp/datastore/data_store_index.py +4 -2
- pulumi_gcp/datastream/stream.py +16 -10
- pulumi_gcp/diagflow/cx_test_case.py +4 -4
- pulumi_gcp/diagflow/entity_type.py +4 -2
- pulumi_gcp/diagflow/fulfillment.py +4 -2
- pulumi_gcp/diagflow/intent.py +8 -4
- pulumi_gcp/edgecontainer/node_pool.py +4 -2
- pulumi_gcp/edgecontainer/vpn_connection.py +4 -2
- pulumi_gcp/eventarc/channel.py +4 -2
- pulumi_gcp/eventarc/google_channel_config.py +4 -2
- pulumi_gcp/firebase/app_check_app_attest_config.py +16 -8
- pulumi_gcp/firebase/app_check_debug_token.py +8 -4
- pulumi_gcp/firebase/app_check_device_check_config.py +8 -4
- pulumi_gcp/firebase/app_check_play_integrity_config.py +16 -8
- pulumi_gcp/firebase/app_check_recaptcha_enterprise_config.py +8 -4
- pulumi_gcp/firebase/app_check_recaptcha_v3_config.py +8 -4
- pulumi_gcp/firebase/app_check_service_config.py +12 -6
- pulumi_gcp/firebase/database_instance.py +4 -2
- pulumi_gcp/firebaserules/release.py +0 -98
- pulumi_gcp/firestore/database.py +24 -20
- pulumi_gcp/firestore/document.py +24 -12
- pulumi_gcp/folder/access_approval_settings.py +4 -2
- pulumi_gcp/gkehub/membership_binding.py +14 -4
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +8 -4
- pulumi_gcp/gkehub/namespace.py +4 -2
- pulumi_gcp/gkehub/scope_rbac_role_binding.py +4 -2
- pulumi_gcp/integrationconnectors/connection.py +4 -2
- pulumi_gcp/integrationconnectors/managed_zone.py +18 -6
- pulumi_gcp/logging/folder_settings.py +12 -10
- pulumi_gcp/logging/linked_dataset.py +4 -2
- pulumi_gcp/logging/organization_settings.py +12 -10
- pulumi_gcp/logging/project_bucket_config.py +4 -2
- pulumi_gcp/looker/instance.py +12 -10
- pulumi_gcp/netapp/volume_replication.py +4 -2
- pulumi_gcp/netapp/volume_snapshot.py +4 -2
- pulumi_gcp/networkconnectivity/internal_range.py +14 -12
- pulumi_gcp/networksecurity/gateway_security_policy.py +16 -4
- pulumi_gcp/networksecurity/tls_inspection_policy.py +22 -4
- pulumi_gcp/networkservices/gateway.py +12 -6
- pulumi_gcp/networkservices/lb_traffic_extension.py +0 -526
- pulumi_gcp/organizations/access_approval_settings.py +4 -2
- pulumi_gcp/parallelstore/instance.py +20 -18
- pulumi_gcp/projects/access_approval_settings.py +4 -2
- pulumi_gcp/pubsub/schema.py +4 -2
- pulumi_gcp/pubsub/subscription.py +94 -62
- pulumi_gcp/pubsub/topic.py +4 -2
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/cluster.py +30 -28
- pulumi_gcp/redis/instance.py +4 -2
- pulumi_gcp/secretmanager/secret.py +4 -2
- pulumi_gcp/securesourcemanager/instance.py +20 -8
- pulumi_gcp/securitycenter/instance_iam_binding.py +14 -12
- pulumi_gcp/securitycenter/instance_iam_member.py +14 -12
- pulumi_gcp/securitycenter/instance_iam_policy.py +14 -12
- pulumi_gcp/serviceaccount/key.py +2 -2
- pulumi_gcp/sql/database_instance.py +4 -2
- pulumi_gcp/storage/get_project_service_account.py +4 -2
- pulumi_gcp/storage/insights_report_config.py +12 -10
- pulumi_gcp/storage/notification.py +18 -16
- pulumi_gcp/storage/transfer_agent_pool.py +4 -2
- pulumi_gcp/storage/transfer_job.py +14 -4
- pulumi_gcp/tpu/v2_vm.py +10 -6
- pulumi_gcp/vertex/ai_endpoint.py +24 -22
- pulumi_gcp/vertex/ai_index_endpoint.py +20 -18
- pulumi_gcp/vertex/ai_tensorboard.py +14 -12
- pulumi_gcp/vmwareengine/external_address.py +4 -2
- pulumi_gcp/vmwareengine/network.py +8 -4
- {pulumi_gcp-7.24.0a1716588893.dist-info → pulumi_gcp-7.25.0a1717097889.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.24.0a1716588893.dist-info → pulumi_gcp-7.25.0a1717097889.dist-info}/RECORD +126 -126
- {pulumi_gcp-7.24.0a1716588893.dist-info → pulumi_gcp-7.25.0a1717097889.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.24.0a1716588893.dist-info → pulumi_gcp-7.25.0a1717097889.dist-info}/top_level.txt +0 -0
@@ -392,56 +392,6 @@ class InstanceGroup(pulumi.CustomResource):
|
|
392
392
|
zone="us-central1-a")
|
393
393
|
```
|
394
394
|
|
395
|
-
### Example Usage - Recreating an instance group in use
|
396
|
-
Recreating an instance group that's in use by another resource will give a
|
397
|
-
`resourceInUseByAnotherResource` error. Use `lifecycle.create_before_destroy`
|
398
|
-
as shown in this example to avoid this type of error.
|
399
|
-
|
400
|
-
```python
|
401
|
-
import pulumi
|
402
|
-
import pulumi_gcp as gcp
|
403
|
-
|
404
|
-
debian_image = gcp.compute.get_image(family="debian-11",
|
405
|
-
project="debian-cloud")
|
406
|
-
staging_vm = gcp.compute.Instance("staging_vm",
|
407
|
-
name="staging-vm",
|
408
|
-
machine_type="e2-medium",
|
409
|
-
zone="us-central1-c",
|
410
|
-
boot_disk=gcp.compute.InstanceBootDiskArgs(
|
411
|
-
initialize_params=gcp.compute.InstanceBootDiskInitializeParamsArgs(
|
412
|
-
image=debian_image.self_link,
|
413
|
-
),
|
414
|
-
),
|
415
|
-
network_interfaces=[gcp.compute.InstanceNetworkInterfaceArgs(
|
416
|
-
network="default",
|
417
|
-
)])
|
418
|
-
staging_group = gcp.compute.InstanceGroup("staging_group",
|
419
|
-
name="staging-instance-group",
|
420
|
-
zone="us-central1-c",
|
421
|
-
instances=[staging_vm.id],
|
422
|
-
named_ports=[
|
423
|
-
gcp.compute.InstanceGroupNamedPortArgs(
|
424
|
-
name="http",
|
425
|
-
port=8080,
|
426
|
-
),
|
427
|
-
gcp.compute.InstanceGroupNamedPortArgs(
|
428
|
-
name="https",
|
429
|
-
port=8443,
|
430
|
-
),
|
431
|
-
])
|
432
|
-
staging_health = gcp.compute.HttpsHealthCheck("staging_health",
|
433
|
-
name="staging-health",
|
434
|
-
request_path="/health_check")
|
435
|
-
staging_service = gcp.compute.BackendService("staging_service",
|
436
|
-
name="staging-service",
|
437
|
-
port_name="https",
|
438
|
-
protocol="HTTPS",
|
439
|
-
backends=[gcp.compute.BackendServiceBackendArgs(
|
440
|
-
group=staging_group.id,
|
441
|
-
)],
|
442
|
-
health_checks=staging_health.id)
|
443
|
-
```
|
444
|
-
|
445
395
|
## Import
|
446
396
|
|
447
397
|
Instance groups can be imported using the `zone` and `name` with an optional `project`, e.g.
|
@@ -540,56 +490,6 @@ class InstanceGroup(pulumi.CustomResource):
|
|
540
490
|
zone="us-central1-a")
|
541
491
|
```
|
542
492
|
|
543
|
-
### Example Usage - Recreating an instance group in use
|
544
|
-
Recreating an instance group that's in use by another resource will give a
|
545
|
-
`resourceInUseByAnotherResource` error. Use `lifecycle.create_before_destroy`
|
546
|
-
as shown in this example to avoid this type of error.
|
547
|
-
|
548
|
-
```python
|
549
|
-
import pulumi
|
550
|
-
import pulumi_gcp as gcp
|
551
|
-
|
552
|
-
debian_image = gcp.compute.get_image(family="debian-11",
|
553
|
-
project="debian-cloud")
|
554
|
-
staging_vm = gcp.compute.Instance("staging_vm",
|
555
|
-
name="staging-vm",
|
556
|
-
machine_type="e2-medium",
|
557
|
-
zone="us-central1-c",
|
558
|
-
boot_disk=gcp.compute.InstanceBootDiskArgs(
|
559
|
-
initialize_params=gcp.compute.InstanceBootDiskInitializeParamsArgs(
|
560
|
-
image=debian_image.self_link,
|
561
|
-
),
|
562
|
-
),
|
563
|
-
network_interfaces=[gcp.compute.InstanceNetworkInterfaceArgs(
|
564
|
-
network="default",
|
565
|
-
)])
|
566
|
-
staging_group = gcp.compute.InstanceGroup("staging_group",
|
567
|
-
name="staging-instance-group",
|
568
|
-
zone="us-central1-c",
|
569
|
-
instances=[staging_vm.id],
|
570
|
-
named_ports=[
|
571
|
-
gcp.compute.InstanceGroupNamedPortArgs(
|
572
|
-
name="http",
|
573
|
-
port=8080,
|
574
|
-
),
|
575
|
-
gcp.compute.InstanceGroupNamedPortArgs(
|
576
|
-
name="https",
|
577
|
-
port=8443,
|
578
|
-
),
|
579
|
-
])
|
580
|
-
staging_health = gcp.compute.HttpsHealthCheck("staging_health",
|
581
|
-
name="staging-health",
|
582
|
-
request_path="/health_check")
|
583
|
-
staging_service = gcp.compute.BackendService("staging_service",
|
584
|
-
name="staging-service",
|
585
|
-
port_name="https",
|
586
|
-
protocol="HTTPS",
|
587
|
-
backends=[gcp.compute.BackendServiceBackendArgs(
|
588
|
-
group=staging_group.id,
|
589
|
-
)],
|
590
|
-
health_checks=staging_health.id)
|
591
|
-
```
|
592
|
-
|
593
493
|
## Import
|
594
494
|
|
595
495
|
Instance groups can be imported using the `zone` and `name` with an optional `project`, e.g.
|
@@ -412,7 +412,8 @@ class PacketMirroring(pulumi.CustomResource):
|
|
412
412
|
all_ports=True,
|
413
413
|
network=default.id,
|
414
414
|
subnetwork=default_subnetwork.id,
|
415
|
-
network_tier="PREMIUM"
|
415
|
+
network_tier="PREMIUM",
|
416
|
+
opts=pulumi.ResourceOptions(depends_on=[default_subnetwork]))
|
416
417
|
foobar = gcp.compute.PacketMirroring("foobar",
|
417
418
|
name="my-mirroring",
|
418
419
|
description="bar",
|
@@ -546,7 +547,8 @@ class PacketMirroring(pulumi.CustomResource):
|
|
546
547
|
all_ports=True,
|
547
548
|
network=default.id,
|
548
549
|
subnetwork=default_subnetwork.id,
|
549
|
-
network_tier="PREMIUM"
|
550
|
+
network_tier="PREMIUM",
|
551
|
+
opts=pulumi.ResourceOptions(depends_on=[default_subnetwork]))
|
550
552
|
foobar = gcp.compute.PacketMirroring("foobar",
|
551
553
|
name="my-mirroring",
|
552
554
|
description="bar",
|
@@ -648,7 +648,8 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
648
648
|
offset=8,
|
649
649
|
size=2,
|
650
650
|
mask="0x8F00",
|
651
|
-
)]
|
651
|
+
)],
|
652
|
+
opts=pulumi.ResourceOptions(depends_on=[edge_sec_service]))
|
652
653
|
policy_rule_network_match = gcp.compute.RegionSecurityPolicyRule("policy_rule_network_match",
|
653
654
|
region="us-west2",
|
654
655
|
security_policy=policynetworkmatch.name,
|
@@ -897,7 +898,8 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
897
898
|
offset=8,
|
898
899
|
size=2,
|
899
900
|
mask="0x8F00",
|
900
|
-
)]
|
901
|
+
)],
|
902
|
+
opts=pulumi.ResourceOptions(depends_on=[edge_sec_service]))
|
901
903
|
policy_rule_network_match = gcp.compute.RegionSecurityPolicyRule("policy_rule_network_match",
|
902
904
|
region="us-west2",
|
903
905
|
security_policy=policynetworkmatch.name,
|
@@ -411,100 +411,6 @@ class RegionSslCertificate(pulumi.CustomResource):
|
|
411
411
|
|
412
412
|
## Example Usage
|
413
413
|
|
414
|
-
### Region Ssl Certificate Basic
|
415
|
-
|
416
|
-
```python
|
417
|
-
import pulumi
|
418
|
-
import pulumi_gcp as gcp
|
419
|
-
import pulumi_std as std
|
420
|
-
|
421
|
-
default = gcp.compute.RegionSslCertificate("default",
|
422
|
-
region="us-central1",
|
423
|
-
name_prefix="my-certificate-",
|
424
|
-
description="a description",
|
425
|
-
private_key=std.file(input="path/to/private.key").result,
|
426
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
427
|
-
```
|
428
|
-
### Region Ssl Certificate Random Provider
|
429
|
-
|
430
|
-
```python
|
431
|
-
import pulumi
|
432
|
-
import pulumi_gcp as gcp
|
433
|
-
import pulumi_random as random
|
434
|
-
import pulumi_std as std
|
435
|
-
|
436
|
-
certificate = random.RandomId("certificate",
|
437
|
-
byte_length=4,
|
438
|
-
prefix="my-certificate-",
|
439
|
-
keepers={
|
440
|
-
"private_key": std.filebase64sha256(input="path/to/private.key").result,
|
441
|
-
"certificate": std.filebase64sha256(input="path/to/certificate.crt").result,
|
442
|
-
})
|
443
|
-
# You may also want to control name generation explicitly:
|
444
|
-
default = gcp.compute.RegionSslCertificate("default",
|
445
|
-
region="us-central1",
|
446
|
-
name=certificate.hex,
|
447
|
-
private_key=std.file(input="path/to/private.key").result,
|
448
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
449
|
-
```
|
450
|
-
### Region Ssl Certificate Target Https Proxies
|
451
|
-
|
452
|
-
```python
|
453
|
-
import pulumi
|
454
|
-
import pulumi_gcp as gcp
|
455
|
-
import pulumi_std as std
|
456
|
-
|
457
|
-
# Using with Region Target HTTPS Proxies
|
458
|
-
#
|
459
|
-
# SSL certificates cannot be updated after creation. In order to apply
|
460
|
-
# the specified configuration, the provider will destroy the existing
|
461
|
-
# resource and create a replacement. To effectively use an SSL
|
462
|
-
# certificate resource with a Target HTTPS Proxy resource, it's
|
463
|
-
# recommended to specify create_before_destroy in a lifecycle block.
|
464
|
-
# Either omit the Instance Template name attribute, specify a partial
|
465
|
-
# name with name_prefix, or use random_id resource. Example:
|
466
|
-
default = gcp.compute.RegionSslCertificate("default",
|
467
|
-
region="us-central1",
|
468
|
-
name_prefix="my-certificate-",
|
469
|
-
private_key=std.file(input="path/to/private.key").result,
|
470
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
471
|
-
default_region_health_check = gcp.compute.RegionHealthCheck("default",
|
472
|
-
region="us-central1",
|
473
|
-
name="http-health-check",
|
474
|
-
http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
|
475
|
-
port=80,
|
476
|
-
))
|
477
|
-
default_region_backend_service = gcp.compute.RegionBackendService("default",
|
478
|
-
region="us-central1",
|
479
|
-
name="backend-service",
|
480
|
-
protocol="HTTP",
|
481
|
-
load_balancing_scheme="INTERNAL_MANAGED",
|
482
|
-
timeout_sec=10,
|
483
|
-
health_checks=default_region_health_check.id)
|
484
|
-
default_region_url_map = gcp.compute.RegionUrlMap("default",
|
485
|
-
region="us-central1",
|
486
|
-
name="url-map",
|
487
|
-
description="a description",
|
488
|
-
default_service=default_region_backend_service.id,
|
489
|
-
host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
|
490
|
-
hosts=["mysite.com"],
|
491
|
-
path_matcher="allpaths",
|
492
|
-
)],
|
493
|
-
path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
|
494
|
-
name="allpaths",
|
495
|
-
default_service=default_region_backend_service.id,
|
496
|
-
path_rules=[gcp.compute.RegionUrlMapPathMatcherPathRuleArgs(
|
497
|
-
paths=["/*"],
|
498
|
-
service=default_region_backend_service.id,
|
499
|
-
)],
|
500
|
-
)])
|
501
|
-
default_region_target_https_proxy = gcp.compute.RegionTargetHttpsProxy("default",
|
502
|
-
region="us-central1",
|
503
|
-
name="test-proxy",
|
504
|
-
url_map=default_region_url_map.id,
|
505
|
-
ssl_certificates=[default.id])
|
506
|
-
```
|
507
|
-
|
508
414
|
## Import
|
509
415
|
|
510
416
|
RegionSslCertificate can be imported using any of these accepted formats:
|
@@ -582,100 +488,6 @@ class RegionSslCertificate(pulumi.CustomResource):
|
|
582
488
|
|
583
489
|
## Example Usage
|
584
490
|
|
585
|
-
### Region Ssl Certificate Basic
|
586
|
-
|
587
|
-
```python
|
588
|
-
import pulumi
|
589
|
-
import pulumi_gcp as gcp
|
590
|
-
import pulumi_std as std
|
591
|
-
|
592
|
-
default = gcp.compute.RegionSslCertificate("default",
|
593
|
-
region="us-central1",
|
594
|
-
name_prefix="my-certificate-",
|
595
|
-
description="a description",
|
596
|
-
private_key=std.file(input="path/to/private.key").result,
|
597
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
598
|
-
```
|
599
|
-
### Region Ssl Certificate Random Provider
|
600
|
-
|
601
|
-
```python
|
602
|
-
import pulumi
|
603
|
-
import pulumi_gcp as gcp
|
604
|
-
import pulumi_random as random
|
605
|
-
import pulumi_std as std
|
606
|
-
|
607
|
-
certificate = random.RandomId("certificate",
|
608
|
-
byte_length=4,
|
609
|
-
prefix="my-certificate-",
|
610
|
-
keepers={
|
611
|
-
"private_key": std.filebase64sha256(input="path/to/private.key").result,
|
612
|
-
"certificate": std.filebase64sha256(input="path/to/certificate.crt").result,
|
613
|
-
})
|
614
|
-
# You may also want to control name generation explicitly:
|
615
|
-
default = gcp.compute.RegionSslCertificate("default",
|
616
|
-
region="us-central1",
|
617
|
-
name=certificate.hex,
|
618
|
-
private_key=std.file(input="path/to/private.key").result,
|
619
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
620
|
-
```
|
621
|
-
### Region Ssl Certificate Target Https Proxies
|
622
|
-
|
623
|
-
```python
|
624
|
-
import pulumi
|
625
|
-
import pulumi_gcp as gcp
|
626
|
-
import pulumi_std as std
|
627
|
-
|
628
|
-
# Using with Region Target HTTPS Proxies
|
629
|
-
#
|
630
|
-
# SSL certificates cannot be updated after creation. In order to apply
|
631
|
-
# the specified configuration, the provider will destroy the existing
|
632
|
-
# resource and create a replacement. To effectively use an SSL
|
633
|
-
# certificate resource with a Target HTTPS Proxy resource, it's
|
634
|
-
# recommended to specify create_before_destroy in a lifecycle block.
|
635
|
-
# Either omit the Instance Template name attribute, specify a partial
|
636
|
-
# name with name_prefix, or use random_id resource. Example:
|
637
|
-
default = gcp.compute.RegionSslCertificate("default",
|
638
|
-
region="us-central1",
|
639
|
-
name_prefix="my-certificate-",
|
640
|
-
private_key=std.file(input="path/to/private.key").result,
|
641
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
642
|
-
default_region_health_check = gcp.compute.RegionHealthCheck("default",
|
643
|
-
region="us-central1",
|
644
|
-
name="http-health-check",
|
645
|
-
http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs(
|
646
|
-
port=80,
|
647
|
-
))
|
648
|
-
default_region_backend_service = gcp.compute.RegionBackendService("default",
|
649
|
-
region="us-central1",
|
650
|
-
name="backend-service",
|
651
|
-
protocol="HTTP",
|
652
|
-
load_balancing_scheme="INTERNAL_MANAGED",
|
653
|
-
timeout_sec=10,
|
654
|
-
health_checks=default_region_health_check.id)
|
655
|
-
default_region_url_map = gcp.compute.RegionUrlMap("default",
|
656
|
-
region="us-central1",
|
657
|
-
name="url-map",
|
658
|
-
description="a description",
|
659
|
-
default_service=default_region_backend_service.id,
|
660
|
-
host_rules=[gcp.compute.RegionUrlMapHostRuleArgs(
|
661
|
-
hosts=["mysite.com"],
|
662
|
-
path_matcher="allpaths",
|
663
|
-
)],
|
664
|
-
path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs(
|
665
|
-
name="allpaths",
|
666
|
-
default_service=default_region_backend_service.id,
|
667
|
-
path_rules=[gcp.compute.RegionUrlMapPathMatcherPathRuleArgs(
|
668
|
-
paths=["/*"],
|
669
|
-
service=default_region_backend_service.id,
|
670
|
-
)],
|
671
|
-
)])
|
672
|
-
default_region_target_https_proxy = gcp.compute.RegionTargetHttpsProxy("default",
|
673
|
-
region="us-central1",
|
674
|
-
name="test-proxy",
|
675
|
-
url_map=default_region_url_map.id,
|
676
|
-
ssl_certificates=[default.id])
|
677
|
-
```
|
678
|
-
|
679
491
|
## Import
|
680
492
|
|
681
493
|
RegionSslCertificate can be imported using any of these accepted formats:
|
pulumi_gcp/compute/route.py
CHANGED
@@ -804,7 +804,11 @@ class Route(pulumi.CustomResource):
|
|
804
804
|
tags=[
|
805
805
|
"tag1",
|
806
806
|
"tag2",
|
807
|
-
]
|
807
|
+
],
|
808
|
+
opts=pulumi.ResourceOptions(depends_on=[
|
809
|
+
peering1,
|
810
|
+
peering2,
|
811
|
+
]))
|
808
812
|
```
|
809
813
|
|
810
814
|
## Import
|
@@ -1039,7 +1043,11 @@ class Route(pulumi.CustomResource):
|
|
1039
1043
|
tags=[
|
1040
1044
|
"tag1",
|
1041
1045
|
"tag2",
|
1042
|
-
]
|
1046
|
+
],
|
1047
|
+
opts=pulumi.ResourceOptions(depends_on=[
|
1048
|
+
peering1,
|
1049
|
+
peering2,
|
1050
|
+
]))
|
1043
1051
|
```
|
1044
1052
|
|
1045
1053
|
## Import
|
@@ -374,89 +374,6 @@ class SSLCertificate(pulumi.CustomResource):
|
|
374
374
|
|
375
375
|
## Example Usage
|
376
376
|
|
377
|
-
### Ssl Certificate Basic
|
378
|
-
|
379
|
-
```python
|
380
|
-
import pulumi
|
381
|
-
import pulumi_gcp as gcp
|
382
|
-
import pulumi_std as std
|
383
|
-
|
384
|
-
default = gcp.compute.SSLCertificate("default",
|
385
|
-
name_prefix="my-certificate-",
|
386
|
-
description="a description",
|
387
|
-
private_key=std.file(input="path/to/private.key").result,
|
388
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
389
|
-
```
|
390
|
-
### Ssl Certificate Random Provider
|
391
|
-
|
392
|
-
```python
|
393
|
-
import pulumi
|
394
|
-
import pulumi_gcp as gcp
|
395
|
-
import pulumi_random as random
|
396
|
-
import pulumi_std as std
|
397
|
-
|
398
|
-
certificate = random.RandomId("certificate",
|
399
|
-
byte_length=4,
|
400
|
-
prefix="my-certificate-",
|
401
|
-
keepers={
|
402
|
-
"private_key": std.filebase64sha256(input="path/to/private.key").result,
|
403
|
-
"certificate": std.filebase64sha256(input="path/to/certificate.crt").result,
|
404
|
-
})
|
405
|
-
# You may also want to control name generation explicitly:
|
406
|
-
default = gcp.compute.SSLCertificate("default",
|
407
|
-
name=certificate.hex,
|
408
|
-
private_key=std.file(input="path/to/private.key").result,
|
409
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
410
|
-
```
|
411
|
-
### Ssl Certificate Target Https Proxies
|
412
|
-
|
413
|
-
```python
|
414
|
-
import pulumi
|
415
|
-
import pulumi_gcp as gcp
|
416
|
-
import pulumi_std as std
|
417
|
-
|
418
|
-
# Using with Target HTTPS Proxies
|
419
|
-
#
|
420
|
-
# SSL certificates cannot be updated after creation. In order to apply
|
421
|
-
# the specified configuration, the provider will destroy the existing
|
422
|
-
# resource and create a replacement. Example:
|
423
|
-
default = gcp.compute.SSLCertificate("default",
|
424
|
-
name_prefix="my-certificate-",
|
425
|
-
private_key=std.file(input="path/to/private.key").result,
|
426
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
427
|
-
default_http_health_check = gcp.compute.HttpHealthCheck("default",
|
428
|
-
name="http-health-check",
|
429
|
-
request_path="/",
|
430
|
-
check_interval_sec=1,
|
431
|
-
timeout_sec=1)
|
432
|
-
default_backend_service = gcp.compute.BackendService("default",
|
433
|
-
name="backend-service",
|
434
|
-
port_name="http",
|
435
|
-
protocol="HTTP",
|
436
|
-
timeout_sec=10,
|
437
|
-
health_checks=default_http_health_check.id)
|
438
|
-
default_url_map = gcp.compute.URLMap("default",
|
439
|
-
name="url-map",
|
440
|
-
description="a description",
|
441
|
-
default_service=default_backend_service.id,
|
442
|
-
host_rules=[gcp.compute.URLMapHostRuleArgs(
|
443
|
-
hosts=["mysite.com"],
|
444
|
-
path_matcher="allpaths",
|
445
|
-
)],
|
446
|
-
path_matchers=[gcp.compute.URLMapPathMatcherArgs(
|
447
|
-
name="allpaths",
|
448
|
-
default_service=default_backend_service.id,
|
449
|
-
path_rules=[gcp.compute.URLMapPathMatcherPathRuleArgs(
|
450
|
-
paths=["/*"],
|
451
|
-
service=default_backend_service.id,
|
452
|
-
)],
|
453
|
-
)])
|
454
|
-
default_target_https_proxy = gcp.compute.TargetHttpsProxy("default",
|
455
|
-
name="test-proxy",
|
456
|
-
url_map=default_url_map.id,
|
457
|
-
ssl_certificates=[default.id])
|
458
|
-
```
|
459
|
-
|
460
377
|
## Import
|
461
378
|
|
462
379
|
SslCertificate can be imported using any of these accepted formats:
|
@@ -526,89 +443,6 @@ class SSLCertificate(pulumi.CustomResource):
|
|
526
443
|
|
527
444
|
## Example Usage
|
528
445
|
|
529
|
-
### Ssl Certificate Basic
|
530
|
-
|
531
|
-
```python
|
532
|
-
import pulumi
|
533
|
-
import pulumi_gcp as gcp
|
534
|
-
import pulumi_std as std
|
535
|
-
|
536
|
-
default = gcp.compute.SSLCertificate("default",
|
537
|
-
name_prefix="my-certificate-",
|
538
|
-
description="a description",
|
539
|
-
private_key=std.file(input="path/to/private.key").result,
|
540
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
541
|
-
```
|
542
|
-
### Ssl Certificate Random Provider
|
543
|
-
|
544
|
-
```python
|
545
|
-
import pulumi
|
546
|
-
import pulumi_gcp as gcp
|
547
|
-
import pulumi_random as random
|
548
|
-
import pulumi_std as std
|
549
|
-
|
550
|
-
certificate = random.RandomId("certificate",
|
551
|
-
byte_length=4,
|
552
|
-
prefix="my-certificate-",
|
553
|
-
keepers={
|
554
|
-
"private_key": std.filebase64sha256(input="path/to/private.key").result,
|
555
|
-
"certificate": std.filebase64sha256(input="path/to/certificate.crt").result,
|
556
|
-
})
|
557
|
-
# You may also want to control name generation explicitly:
|
558
|
-
default = gcp.compute.SSLCertificate("default",
|
559
|
-
name=certificate.hex,
|
560
|
-
private_key=std.file(input="path/to/private.key").result,
|
561
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
562
|
-
```
|
563
|
-
### Ssl Certificate Target Https Proxies
|
564
|
-
|
565
|
-
```python
|
566
|
-
import pulumi
|
567
|
-
import pulumi_gcp as gcp
|
568
|
-
import pulumi_std as std
|
569
|
-
|
570
|
-
# Using with Target HTTPS Proxies
|
571
|
-
#
|
572
|
-
# SSL certificates cannot be updated after creation. In order to apply
|
573
|
-
# the specified configuration, the provider will destroy the existing
|
574
|
-
# resource and create a replacement. Example:
|
575
|
-
default = gcp.compute.SSLCertificate("default",
|
576
|
-
name_prefix="my-certificate-",
|
577
|
-
private_key=std.file(input="path/to/private.key").result,
|
578
|
-
certificate=std.file(input="path/to/certificate.crt").result)
|
579
|
-
default_http_health_check = gcp.compute.HttpHealthCheck("default",
|
580
|
-
name="http-health-check",
|
581
|
-
request_path="/",
|
582
|
-
check_interval_sec=1,
|
583
|
-
timeout_sec=1)
|
584
|
-
default_backend_service = gcp.compute.BackendService("default",
|
585
|
-
name="backend-service",
|
586
|
-
port_name="http",
|
587
|
-
protocol="HTTP",
|
588
|
-
timeout_sec=10,
|
589
|
-
health_checks=default_http_health_check.id)
|
590
|
-
default_url_map = gcp.compute.URLMap("default",
|
591
|
-
name="url-map",
|
592
|
-
description="a description",
|
593
|
-
default_service=default_backend_service.id,
|
594
|
-
host_rules=[gcp.compute.URLMapHostRuleArgs(
|
595
|
-
hosts=["mysite.com"],
|
596
|
-
path_matcher="allpaths",
|
597
|
-
)],
|
598
|
-
path_matchers=[gcp.compute.URLMapPathMatcherArgs(
|
599
|
-
name="allpaths",
|
600
|
-
default_service=default_backend_service.id,
|
601
|
-
path_rules=[gcp.compute.URLMapPathMatcherPathRuleArgs(
|
602
|
-
paths=["/*"],
|
603
|
-
service=default_backend_service.id,
|
604
|
-
)],
|
605
|
-
)])
|
606
|
-
default_target_https_proxy = gcp.compute.TargetHttpsProxy("default",
|
607
|
-
name="test-proxy",
|
608
|
-
url_map=default_url_map.id,
|
609
|
-
ssl_certificates=[default.id])
|
610
|
-
```
|
611
|
-
|
612
446
|
## Import
|
613
447
|
|
614
448
|
SslCertificate can be imported using any of these accepted formats:
|
@@ -516,7 +516,8 @@ class TargetInstance(pulumi.CustomResource):
|
|
516
516
|
name="region-secpolicy",
|
517
517
|
region="southamerica-west1",
|
518
518
|
description="basic security policy for target instance",
|
519
|
-
type="CLOUD_ARMOR_NETWORK"
|
519
|
+
type="CLOUD_ARMOR_NETWORK",
|
520
|
+
opts=pulumi.ResourceOptions(depends_on=[edge_sec_service]))
|
520
521
|
default_target_instance = gcp.compute.TargetInstance("default",
|
521
522
|
name="target-instance",
|
522
523
|
zone="southamerica-west1-a",
|
@@ -705,7 +706,8 @@ class TargetInstance(pulumi.CustomResource):
|
|
705
706
|
name="region-secpolicy",
|
706
707
|
region="southamerica-west1",
|
707
708
|
description="basic security policy for target instance",
|
708
|
-
type="CLOUD_ARMOR_NETWORK"
|
709
|
+
type="CLOUD_ARMOR_NETWORK",
|
710
|
+
opts=pulumi.ResourceOptions(depends_on=[edge_sec_service]))
|
709
711
|
default_target_instance = gcp.compute.TargetInstance("default",
|
710
712
|
name="target-instance",
|
711
713
|
zone="southamerica-west1-a",
|
@@ -330,7 +330,12 @@ class VPNGateway(pulumi.CustomResource):
|
|
330
330
|
name="tunnel1",
|
331
331
|
peer_ip="15.0.0.120",
|
332
332
|
shared_secret="a secret message",
|
333
|
-
target_vpn_gateway=target_gateway.id
|
333
|
+
target_vpn_gateway=target_gateway.id,
|
334
|
+
opts=pulumi.ResourceOptions(depends_on=[
|
335
|
+
fr_esp,
|
336
|
+
fr_udp500,
|
337
|
+
fr_udp4500,
|
338
|
+
]))
|
334
339
|
route1 = gcp.compute.Route("route1",
|
335
340
|
name="route1",
|
336
341
|
network=network1.name,
|
@@ -438,7 +443,12 @@ class VPNGateway(pulumi.CustomResource):
|
|
438
443
|
name="tunnel1",
|
439
444
|
peer_ip="15.0.0.120",
|
440
445
|
shared_secret="a secret message",
|
441
|
-
target_vpn_gateway=target_gateway.id
|
446
|
+
target_vpn_gateway=target_gateway.id,
|
447
|
+
opts=pulumi.ResourceOptions(depends_on=[
|
448
|
+
fr_esp,
|
449
|
+
fr_udp500,
|
450
|
+
fr_udp4500,
|
451
|
+
]))
|
442
452
|
route1 = gcp.compute.Route("route1",
|
443
453
|
name="route1",
|
444
454
|
network=network1.name,
|
pulumi_gcp/compute/vpn_tunnel.py
CHANGED
@@ -859,14 +859,6 @@ class VPNTunnel(pulumi.CustomResource):
|
|
859
859
|
target_gateway = gcp.compute.VPNGateway("target_gateway",
|
860
860
|
name="vpn-1",
|
861
861
|
network=network1.id)
|
862
|
-
tunnel1 = gcp.compute.VPNTunnel("tunnel1",
|
863
|
-
name="tunnel-1",
|
864
|
-
peer_ip="15.0.0.120",
|
865
|
-
shared_secret="a secret message",
|
866
|
-
target_vpn_gateway=target_gateway.id,
|
867
|
-
labels={
|
868
|
-
"foo": "bar",
|
869
|
-
})
|
870
862
|
vpn_static_ip = gcp.compute.Address("vpn_static_ip", name="vpn-static-ip")
|
871
863
|
fr_esp = gcp.compute.ForwardingRule("fr_esp",
|
872
864
|
name="fr-esp",
|
@@ -885,6 +877,19 @@ class VPNTunnel(pulumi.CustomResource):
|
|
885
877
|
port_range="4500",
|
886
878
|
ip_address=vpn_static_ip.address,
|
887
879
|
target=target_gateway.id)
|
880
|
+
tunnel1 = gcp.compute.VPNTunnel("tunnel1",
|
881
|
+
name="tunnel-1",
|
882
|
+
peer_ip="15.0.0.120",
|
883
|
+
shared_secret="a secret message",
|
884
|
+
target_vpn_gateway=target_gateway.id,
|
885
|
+
labels={
|
886
|
+
"foo": "bar",
|
887
|
+
},
|
888
|
+
opts=pulumi.ResourceOptions(depends_on=[
|
889
|
+
fr_esp,
|
890
|
+
fr_udp500,
|
891
|
+
fr_udp4500,
|
892
|
+
]))
|
888
893
|
route1 = gcp.compute.Route("route1",
|
889
894
|
name="route1",
|
890
895
|
network=network1.name,
|
@@ -999,14 +1004,6 @@ class VPNTunnel(pulumi.CustomResource):
|
|
999
1004
|
target_gateway = gcp.compute.VPNGateway("target_gateway",
|
1000
1005
|
name="vpn-1",
|
1001
1006
|
network=network1.id)
|
1002
|
-
tunnel1 = gcp.compute.VPNTunnel("tunnel1",
|
1003
|
-
name="tunnel-1",
|
1004
|
-
peer_ip="15.0.0.120",
|
1005
|
-
shared_secret="a secret message",
|
1006
|
-
target_vpn_gateway=target_gateway.id,
|
1007
|
-
labels={
|
1008
|
-
"foo": "bar",
|
1009
|
-
})
|
1010
1007
|
vpn_static_ip = gcp.compute.Address("vpn_static_ip", name="vpn-static-ip")
|
1011
1008
|
fr_esp = gcp.compute.ForwardingRule("fr_esp",
|
1012
1009
|
name="fr-esp",
|
@@ -1025,6 +1022,19 @@ class VPNTunnel(pulumi.CustomResource):
|
|
1025
1022
|
port_range="4500",
|
1026
1023
|
ip_address=vpn_static_ip.address,
|
1027
1024
|
target=target_gateway.id)
|
1025
|
+
tunnel1 = gcp.compute.VPNTunnel("tunnel1",
|
1026
|
+
name="tunnel-1",
|
1027
|
+
peer_ip="15.0.0.120",
|
1028
|
+
shared_secret="a secret message",
|
1029
|
+
target_vpn_gateway=target_gateway.id,
|
1030
|
+
labels={
|
1031
|
+
"foo": "bar",
|
1032
|
+
},
|
1033
|
+
opts=pulumi.ResourceOptions(depends_on=[
|
1034
|
+
fr_esp,
|
1035
|
+
fr_udp500,
|
1036
|
+
fr_udp4500,
|
1037
|
+
]))
|
1028
1038
|
route1 = gcp.compute.Route("route1",
|
1029
1039
|
name="route1",
|
1030
1040
|
network=network1.name,
|