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
@@ -176,38 +176,6 @@ class ServicePerimeterEgressPolicy(pulumi.CustomResource):
|
|
176
176
|
|
177
177
|
## Example Usage
|
178
178
|
|
179
|
-
### Access Context Manager Service Perimeter Egress Policy
|
180
|
-
|
181
|
-
```python
|
182
|
-
import pulumi
|
183
|
-
import pulumi_gcp as gcp
|
184
|
-
|
185
|
-
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
|
186
|
-
parent="organizations/123456789",
|
187
|
-
title="Storage Policy")
|
188
|
-
storage_perimeter = gcp.accesscontextmanager.ServicePerimeter("storage-perimeter",
|
189
|
-
parent=access_policy.name.apply(lambda name: f"accesspolicies/{name}"),
|
190
|
-
name=access_policy.name.apply(lambda name: f"accesspolicies/{name}/serviceperimeters/storage-perimeter"),
|
191
|
-
title="Storage Perimeter",
|
192
|
-
status=gcp.accesscontextmanager.ServicePerimeterStatusArgs(
|
193
|
-
restricted_services=["storage.googleapis.com"],
|
194
|
-
))
|
195
|
-
egress_policy = gcp.accesscontextmanager.ServicePerimeterEgressPolicy("egress_policy",
|
196
|
-
perimeter=storage_perimeter.name,
|
197
|
-
egress_from=gcp.accesscontextmanager.ServicePerimeterEgressPolicyEgressFromArgs(
|
198
|
-
identity_type="ANY_IDENTITY",
|
199
|
-
),
|
200
|
-
egress_to=gcp.accesscontextmanager.ServicePerimeterEgressPolicyEgressToArgs(
|
201
|
-
resources=["*"],
|
202
|
-
operations=[gcp.accesscontextmanager.ServicePerimeterEgressPolicyEgressToOperationArgs(
|
203
|
-
service_name="bigquery.googleapis.com",
|
204
|
-
method_selectors=[gcp.accesscontextmanager.ServicePerimeterEgressPolicyEgressToOperationMethodSelectorArgs(
|
205
|
-
method="*",
|
206
|
-
)],
|
207
|
-
)],
|
208
|
-
))
|
209
|
-
```
|
210
|
-
|
211
179
|
## Import
|
212
180
|
|
213
181
|
ServicePerimeterEgressPolicy can be imported using any of these accepted formats:
|
@@ -257,38 +225,6 @@ class ServicePerimeterEgressPolicy(pulumi.CustomResource):
|
|
257
225
|
|
258
226
|
## Example Usage
|
259
227
|
|
260
|
-
### Access Context Manager Service Perimeter Egress Policy
|
261
|
-
|
262
|
-
```python
|
263
|
-
import pulumi
|
264
|
-
import pulumi_gcp as gcp
|
265
|
-
|
266
|
-
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
|
267
|
-
parent="organizations/123456789",
|
268
|
-
title="Storage Policy")
|
269
|
-
storage_perimeter = gcp.accesscontextmanager.ServicePerimeter("storage-perimeter",
|
270
|
-
parent=access_policy.name.apply(lambda name: f"accesspolicies/{name}"),
|
271
|
-
name=access_policy.name.apply(lambda name: f"accesspolicies/{name}/serviceperimeters/storage-perimeter"),
|
272
|
-
title="Storage Perimeter",
|
273
|
-
status=gcp.accesscontextmanager.ServicePerimeterStatusArgs(
|
274
|
-
restricted_services=["storage.googleapis.com"],
|
275
|
-
))
|
276
|
-
egress_policy = gcp.accesscontextmanager.ServicePerimeterEgressPolicy("egress_policy",
|
277
|
-
perimeter=storage_perimeter.name,
|
278
|
-
egress_from=gcp.accesscontextmanager.ServicePerimeterEgressPolicyEgressFromArgs(
|
279
|
-
identity_type="ANY_IDENTITY",
|
280
|
-
),
|
281
|
-
egress_to=gcp.accesscontextmanager.ServicePerimeterEgressPolicyEgressToArgs(
|
282
|
-
resources=["*"],
|
283
|
-
operations=[gcp.accesscontextmanager.ServicePerimeterEgressPolicyEgressToOperationArgs(
|
284
|
-
service_name="bigquery.googleapis.com",
|
285
|
-
method_selectors=[gcp.accesscontextmanager.ServicePerimeterEgressPolicyEgressToOperationMethodSelectorArgs(
|
286
|
-
method="*",
|
287
|
-
)],
|
288
|
-
)],
|
289
|
-
))
|
290
|
-
```
|
291
|
-
|
292
228
|
## Import
|
293
229
|
|
294
230
|
ServicePerimeterEgressPolicy can be imported using any of these accepted formats:
|
@@ -181,41 +181,6 @@ class ServicePerimeterIngressPolicy(pulumi.CustomResource):
|
|
181
181
|
|
182
182
|
## Example Usage
|
183
183
|
|
184
|
-
### Access Context Manager Service Perimeter Ingress Policy
|
185
|
-
|
186
|
-
```python
|
187
|
-
import pulumi
|
188
|
-
import pulumi_gcp as gcp
|
189
|
-
|
190
|
-
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
|
191
|
-
parent="organizations/123456789",
|
192
|
-
title="Storage Policy")
|
193
|
-
storage_perimeter = gcp.accesscontextmanager.ServicePerimeter("storage-perimeter",
|
194
|
-
parent=access_policy.name.apply(lambda name: f"accesspolicies/{name}"),
|
195
|
-
name=access_policy.name.apply(lambda name: f"accesspolicies/{name}/serviceperimeters/storage-perimeter"),
|
196
|
-
title="Storage Perimeter",
|
197
|
-
status=gcp.accesscontextmanager.ServicePerimeterStatusArgs(
|
198
|
-
restricted_services=["storage.googleapis.com"],
|
199
|
-
))
|
200
|
-
ingress_policy = gcp.accesscontextmanager.ServicePerimeterIngressPolicy("ingress_policy",
|
201
|
-
perimeter=storage_perimeter.name,
|
202
|
-
ingress_from=gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressFromArgs(
|
203
|
-
identity_type="any_identity",
|
204
|
-
sources=[gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressFromSourceArgs(
|
205
|
-
access_level="*",
|
206
|
-
)],
|
207
|
-
),
|
208
|
-
ingress_to=gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressToArgs(
|
209
|
-
resources=["*"],
|
210
|
-
operations=[gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressToOperationArgs(
|
211
|
-
service_name="bigquery.googleapis.com",
|
212
|
-
method_selectors=[gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressToOperationMethodSelectorArgs(
|
213
|
-
method="*",
|
214
|
-
)],
|
215
|
-
)],
|
216
|
-
))
|
217
|
-
```
|
218
|
-
|
219
184
|
## Import
|
220
185
|
|
221
186
|
ServicePerimeterIngressPolicy can be imported using any of these accepted formats:
|
@@ -267,41 +232,6 @@ class ServicePerimeterIngressPolicy(pulumi.CustomResource):
|
|
267
232
|
|
268
233
|
## Example Usage
|
269
234
|
|
270
|
-
### Access Context Manager Service Perimeter Ingress Policy
|
271
|
-
|
272
|
-
```python
|
273
|
-
import pulumi
|
274
|
-
import pulumi_gcp as gcp
|
275
|
-
|
276
|
-
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
|
277
|
-
parent="organizations/123456789",
|
278
|
-
title="Storage Policy")
|
279
|
-
storage_perimeter = gcp.accesscontextmanager.ServicePerimeter("storage-perimeter",
|
280
|
-
parent=access_policy.name.apply(lambda name: f"accesspolicies/{name}"),
|
281
|
-
name=access_policy.name.apply(lambda name: f"accesspolicies/{name}/serviceperimeters/storage-perimeter"),
|
282
|
-
title="Storage Perimeter",
|
283
|
-
status=gcp.accesscontextmanager.ServicePerimeterStatusArgs(
|
284
|
-
restricted_services=["storage.googleapis.com"],
|
285
|
-
))
|
286
|
-
ingress_policy = gcp.accesscontextmanager.ServicePerimeterIngressPolicy("ingress_policy",
|
287
|
-
perimeter=storage_perimeter.name,
|
288
|
-
ingress_from=gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressFromArgs(
|
289
|
-
identity_type="any_identity",
|
290
|
-
sources=[gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressFromSourceArgs(
|
291
|
-
access_level="*",
|
292
|
-
)],
|
293
|
-
),
|
294
|
-
ingress_to=gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressToArgs(
|
295
|
-
resources=["*"],
|
296
|
-
operations=[gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressToOperationArgs(
|
297
|
-
service_name="bigquery.googleapis.com",
|
298
|
-
method_selectors=[gcp.accesscontextmanager.ServicePerimeterIngressPolicyIngressToOperationMethodSelectorArgs(
|
299
|
-
method="*",
|
300
|
-
)],
|
301
|
-
)],
|
302
|
-
))
|
303
|
-
```
|
304
|
-
|
305
235
|
## Import
|
306
236
|
|
307
237
|
ServicePerimeterIngressPolicy can be imported using any of these accepted formats:
|
pulumi_gcp/alloydb/backup.py
CHANGED
@@ -706,14 +706,6 @@ class Backup(pulumi.CustomResource):
|
|
706
706
|
cluster_id="alloydb-cluster",
|
707
707
|
location="us-central1",
|
708
708
|
network=default_network.id)
|
709
|
-
default = gcp.alloydb.Backup("default",
|
710
|
-
location="us-central1",
|
711
|
-
backup_id="alloydb-backup",
|
712
|
-
cluster_name=default_cluster.name)
|
713
|
-
default_instance = gcp.alloydb.Instance("default",
|
714
|
-
cluster=default_cluster.name,
|
715
|
-
instance_id="alloydb-instance",
|
716
|
-
instance_type="PRIMARY")
|
717
709
|
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
718
710
|
name="alloydb-cluster",
|
719
711
|
address_type="INTERNAL",
|
@@ -724,6 +716,16 @@ class Backup(pulumi.CustomResource):
|
|
724
716
|
network=default_network.id,
|
725
717
|
service="servicenetworking.googleapis.com",
|
726
718
|
reserved_peering_ranges=[private_ip_alloc.name])
|
719
|
+
default_instance = gcp.alloydb.Instance("default",
|
720
|
+
cluster=default_cluster.name,
|
721
|
+
instance_id="alloydb-instance",
|
722
|
+
instance_type="PRIMARY",
|
723
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
724
|
+
default = gcp.alloydb.Backup("default",
|
725
|
+
location="us-central1",
|
726
|
+
backup_id="alloydb-backup",
|
727
|
+
cluster_name=default_cluster.name,
|
728
|
+
opts=pulumi.ResourceOptions(depends_on=[default_instance]))
|
727
729
|
```
|
728
730
|
### Alloydb Backup Full
|
729
731
|
|
@@ -736,19 +738,6 @@ class Backup(pulumi.CustomResource):
|
|
736
738
|
cluster_id="alloydb-cluster",
|
737
739
|
location="us-central1",
|
738
740
|
network=default_network.id)
|
739
|
-
default = gcp.alloydb.Backup("default",
|
740
|
-
location="us-central1",
|
741
|
-
backup_id="alloydb-backup",
|
742
|
-
cluster_name=default_cluster.name,
|
743
|
-
description="example description",
|
744
|
-
type="ON_DEMAND",
|
745
|
-
labels={
|
746
|
-
"label": "key",
|
747
|
-
})
|
748
|
-
default_instance = gcp.alloydb.Instance("default",
|
749
|
-
cluster=default_cluster.name,
|
750
|
-
instance_id="alloydb-instance",
|
751
|
-
instance_type="PRIMARY")
|
752
741
|
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
753
742
|
name="alloydb-cluster",
|
754
743
|
address_type="INTERNAL",
|
@@ -759,6 +748,21 @@ class Backup(pulumi.CustomResource):
|
|
759
748
|
network=default_network.id,
|
760
749
|
service="servicenetworking.googleapis.com",
|
761
750
|
reserved_peering_ranges=[private_ip_alloc.name])
|
751
|
+
default_instance = gcp.alloydb.Instance("default",
|
752
|
+
cluster=default_cluster.name,
|
753
|
+
instance_id="alloydb-instance",
|
754
|
+
instance_type="PRIMARY",
|
755
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
756
|
+
default = gcp.alloydb.Backup("default",
|
757
|
+
location="us-central1",
|
758
|
+
backup_id="alloydb-backup",
|
759
|
+
cluster_name=default_cluster.name,
|
760
|
+
description="example description",
|
761
|
+
type="ON_DEMAND",
|
762
|
+
labels={
|
763
|
+
"label": "key",
|
764
|
+
},
|
765
|
+
opts=pulumi.ResourceOptions(depends_on=[default_instance]))
|
762
766
|
```
|
763
767
|
|
764
768
|
## Import
|
@@ -839,14 +843,6 @@ class Backup(pulumi.CustomResource):
|
|
839
843
|
cluster_id="alloydb-cluster",
|
840
844
|
location="us-central1",
|
841
845
|
network=default_network.id)
|
842
|
-
default = gcp.alloydb.Backup("default",
|
843
|
-
location="us-central1",
|
844
|
-
backup_id="alloydb-backup",
|
845
|
-
cluster_name=default_cluster.name)
|
846
|
-
default_instance = gcp.alloydb.Instance("default",
|
847
|
-
cluster=default_cluster.name,
|
848
|
-
instance_id="alloydb-instance",
|
849
|
-
instance_type="PRIMARY")
|
850
846
|
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
851
847
|
name="alloydb-cluster",
|
852
848
|
address_type="INTERNAL",
|
@@ -857,6 +853,16 @@ class Backup(pulumi.CustomResource):
|
|
857
853
|
network=default_network.id,
|
858
854
|
service="servicenetworking.googleapis.com",
|
859
855
|
reserved_peering_ranges=[private_ip_alloc.name])
|
856
|
+
default_instance = gcp.alloydb.Instance("default",
|
857
|
+
cluster=default_cluster.name,
|
858
|
+
instance_id="alloydb-instance",
|
859
|
+
instance_type="PRIMARY",
|
860
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
861
|
+
default = gcp.alloydb.Backup("default",
|
862
|
+
location="us-central1",
|
863
|
+
backup_id="alloydb-backup",
|
864
|
+
cluster_name=default_cluster.name,
|
865
|
+
opts=pulumi.ResourceOptions(depends_on=[default_instance]))
|
860
866
|
```
|
861
867
|
### Alloydb Backup Full
|
862
868
|
|
@@ -869,19 +875,6 @@ class Backup(pulumi.CustomResource):
|
|
869
875
|
cluster_id="alloydb-cluster",
|
870
876
|
location="us-central1",
|
871
877
|
network=default_network.id)
|
872
|
-
default = gcp.alloydb.Backup("default",
|
873
|
-
location="us-central1",
|
874
|
-
backup_id="alloydb-backup",
|
875
|
-
cluster_name=default_cluster.name,
|
876
|
-
description="example description",
|
877
|
-
type="ON_DEMAND",
|
878
|
-
labels={
|
879
|
-
"label": "key",
|
880
|
-
})
|
881
|
-
default_instance = gcp.alloydb.Instance("default",
|
882
|
-
cluster=default_cluster.name,
|
883
|
-
instance_id="alloydb-instance",
|
884
|
-
instance_type="PRIMARY")
|
885
878
|
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
886
879
|
name="alloydb-cluster",
|
887
880
|
address_type="INTERNAL",
|
@@ -892,6 +885,21 @@ class Backup(pulumi.CustomResource):
|
|
892
885
|
network=default_network.id,
|
893
886
|
service="servicenetworking.googleapis.com",
|
894
887
|
reserved_peering_ranges=[private_ip_alloc.name])
|
888
|
+
default_instance = gcp.alloydb.Instance("default",
|
889
|
+
cluster=default_cluster.name,
|
890
|
+
instance_id="alloydb-instance",
|
891
|
+
instance_type="PRIMARY",
|
892
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
893
|
+
default = gcp.alloydb.Backup("default",
|
894
|
+
location="us-central1",
|
895
|
+
backup_id="alloydb-backup",
|
896
|
+
cluster_name=default_cluster.name,
|
897
|
+
description="example description",
|
898
|
+
type="ON_DEMAND",
|
899
|
+
labels={
|
900
|
+
"label": "key",
|
901
|
+
},
|
902
|
+
opts=pulumi.ResourceOptions(depends_on=[default_instance]))
|
895
903
|
```
|
896
904
|
|
897
905
|
## Import
|
pulumi_gcp/alloydb/cluster.py
CHANGED
@@ -1092,17 +1092,29 @@ class Cluster(pulumi.CustomResource):
|
|
1092
1092
|
initial_user=gcp.alloydb.ClusterInitialUserArgs(
|
1093
1093
|
password="alloydb-source-cluster",
|
1094
1094
|
))
|
1095
|
+
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
1096
|
+
name="alloydb-source-cluster",
|
1097
|
+
address_type="INTERNAL",
|
1098
|
+
purpose="VPC_PEERING",
|
1099
|
+
prefix_length=16,
|
1100
|
+
network=default.id)
|
1101
|
+
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
1102
|
+
network=default.id,
|
1103
|
+
service="servicenetworking.googleapis.com",
|
1104
|
+
reserved_peering_ranges=[private_ip_alloc.name])
|
1095
1105
|
source_instance = gcp.alloydb.Instance("source",
|
1096
1106
|
cluster=source.name,
|
1097
1107
|
instance_id="alloydb-instance",
|
1098
1108
|
instance_type="PRIMARY",
|
1099
1109
|
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
1100
1110
|
cpu_count=2,
|
1101
|
-
)
|
1111
|
+
),
|
1112
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
1102
1113
|
source_backup = gcp.alloydb.Backup("source",
|
1103
1114
|
backup_id="alloydb-backup",
|
1104
1115
|
location="us-central1",
|
1105
|
-
cluster_name=source.name
|
1116
|
+
cluster_name=source.name,
|
1117
|
+
opts=pulumi.ResourceOptions(depends_on=[source_instance]))
|
1106
1118
|
restored_from_backup = gcp.alloydb.Cluster("restored_from_backup",
|
1107
1119
|
cluster_id="alloydb-backup-restored",
|
1108
1120
|
location="us-central1",
|
@@ -1119,16 +1131,6 @@ class Cluster(pulumi.CustomResource):
|
|
1119
1131
|
point_in_time="2023-08-03T19:19:00.094Z",
|
1120
1132
|
))
|
1121
1133
|
project = gcp.organizations.get_project()
|
1122
|
-
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
1123
|
-
name="alloydb-source-cluster",
|
1124
|
-
address_type="INTERNAL",
|
1125
|
-
purpose="VPC_PEERING",
|
1126
|
-
prefix_length=16,
|
1127
|
-
network=default.id)
|
1128
|
-
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
1129
|
-
network=default.id,
|
1130
|
-
service="servicenetworking.googleapis.com",
|
1131
|
-
reserved_peering_ranges=[private_ip_alloc.name])
|
1132
1134
|
```
|
1133
1135
|
### Alloydb Secondary Cluster Basic
|
1134
1136
|
|
@@ -1141,13 +1143,24 @@ class Cluster(pulumi.CustomResource):
|
|
1141
1143
|
cluster_id="alloydb-primary-cluster",
|
1142
1144
|
location="us-central1",
|
1143
1145
|
network=default.id)
|
1146
|
+
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
1147
|
+
name="alloydb-secondary-cluster",
|
1148
|
+
address_type="INTERNAL",
|
1149
|
+
purpose="VPC_PEERING",
|
1150
|
+
prefix_length=16,
|
1151
|
+
network=default.id)
|
1152
|
+
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
1153
|
+
network=default.id,
|
1154
|
+
service="servicenetworking.googleapis.com",
|
1155
|
+
reserved_peering_ranges=[private_ip_alloc.name])
|
1144
1156
|
primary_instance = gcp.alloydb.Instance("primary",
|
1145
1157
|
cluster=primary.name,
|
1146
1158
|
instance_id="alloydb-primary-instance",
|
1147
1159
|
instance_type="PRIMARY",
|
1148
1160
|
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
1149
1161
|
cpu_count=2,
|
1150
|
-
)
|
1162
|
+
),
|
1163
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
1151
1164
|
secondary = gcp.alloydb.Cluster("secondary",
|
1152
1165
|
cluster_id="alloydb-secondary-cluster",
|
1153
1166
|
location="us-east1",
|
@@ -1158,18 +1171,9 @@ class Cluster(pulumi.CustomResource):
|
|
1158
1171
|
),
|
1159
1172
|
secondary_config=gcp.alloydb.ClusterSecondaryConfigArgs(
|
1160
1173
|
primary_cluster_name=primary.name,
|
1161
|
-
)
|
1174
|
+
),
|
1175
|
+
opts=pulumi.ResourceOptions(depends_on=[primary_instance]))
|
1162
1176
|
project = gcp.organizations.get_project()
|
1163
|
-
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
1164
|
-
name="alloydb-secondary-cluster",
|
1165
|
-
address_type="INTERNAL",
|
1166
|
-
purpose="VPC_PEERING",
|
1167
|
-
prefix_length=16,
|
1168
|
-
network=default.id)
|
1169
|
-
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
1170
|
-
network=default.id,
|
1171
|
-
service="servicenetworking.googleapis.com",
|
1172
|
-
reserved_peering_ranges=[private_ip_alloc.name])
|
1173
1177
|
```
|
1174
1178
|
|
1175
1179
|
## Import
|
@@ -1346,17 +1350,29 @@ class Cluster(pulumi.CustomResource):
|
|
1346
1350
|
initial_user=gcp.alloydb.ClusterInitialUserArgs(
|
1347
1351
|
password="alloydb-source-cluster",
|
1348
1352
|
))
|
1353
|
+
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
1354
|
+
name="alloydb-source-cluster",
|
1355
|
+
address_type="INTERNAL",
|
1356
|
+
purpose="VPC_PEERING",
|
1357
|
+
prefix_length=16,
|
1358
|
+
network=default.id)
|
1359
|
+
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
1360
|
+
network=default.id,
|
1361
|
+
service="servicenetworking.googleapis.com",
|
1362
|
+
reserved_peering_ranges=[private_ip_alloc.name])
|
1349
1363
|
source_instance = gcp.alloydb.Instance("source",
|
1350
1364
|
cluster=source.name,
|
1351
1365
|
instance_id="alloydb-instance",
|
1352
1366
|
instance_type="PRIMARY",
|
1353
1367
|
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
1354
1368
|
cpu_count=2,
|
1355
|
-
)
|
1369
|
+
),
|
1370
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
1356
1371
|
source_backup = gcp.alloydb.Backup("source",
|
1357
1372
|
backup_id="alloydb-backup",
|
1358
1373
|
location="us-central1",
|
1359
|
-
cluster_name=source.name
|
1374
|
+
cluster_name=source.name,
|
1375
|
+
opts=pulumi.ResourceOptions(depends_on=[source_instance]))
|
1360
1376
|
restored_from_backup = gcp.alloydb.Cluster("restored_from_backup",
|
1361
1377
|
cluster_id="alloydb-backup-restored",
|
1362
1378
|
location="us-central1",
|
@@ -1373,16 +1389,6 @@ class Cluster(pulumi.CustomResource):
|
|
1373
1389
|
point_in_time="2023-08-03T19:19:00.094Z",
|
1374
1390
|
))
|
1375
1391
|
project = gcp.organizations.get_project()
|
1376
|
-
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
1377
|
-
name="alloydb-source-cluster",
|
1378
|
-
address_type="INTERNAL",
|
1379
|
-
purpose="VPC_PEERING",
|
1380
|
-
prefix_length=16,
|
1381
|
-
network=default.id)
|
1382
|
-
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
1383
|
-
network=default.id,
|
1384
|
-
service="servicenetworking.googleapis.com",
|
1385
|
-
reserved_peering_ranges=[private_ip_alloc.name])
|
1386
1392
|
```
|
1387
1393
|
### Alloydb Secondary Cluster Basic
|
1388
1394
|
|
@@ -1395,13 +1401,24 @@ class Cluster(pulumi.CustomResource):
|
|
1395
1401
|
cluster_id="alloydb-primary-cluster",
|
1396
1402
|
location="us-central1",
|
1397
1403
|
network=default.id)
|
1404
|
+
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
1405
|
+
name="alloydb-secondary-cluster",
|
1406
|
+
address_type="INTERNAL",
|
1407
|
+
purpose="VPC_PEERING",
|
1408
|
+
prefix_length=16,
|
1409
|
+
network=default.id)
|
1410
|
+
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
1411
|
+
network=default.id,
|
1412
|
+
service="servicenetworking.googleapis.com",
|
1413
|
+
reserved_peering_ranges=[private_ip_alloc.name])
|
1398
1414
|
primary_instance = gcp.alloydb.Instance("primary",
|
1399
1415
|
cluster=primary.name,
|
1400
1416
|
instance_id="alloydb-primary-instance",
|
1401
1417
|
instance_type="PRIMARY",
|
1402
1418
|
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
1403
1419
|
cpu_count=2,
|
1404
|
-
)
|
1420
|
+
),
|
1421
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
1405
1422
|
secondary = gcp.alloydb.Cluster("secondary",
|
1406
1423
|
cluster_id="alloydb-secondary-cluster",
|
1407
1424
|
location="us-east1",
|
@@ -1412,18 +1429,9 @@ class Cluster(pulumi.CustomResource):
|
|
1412
1429
|
),
|
1413
1430
|
secondary_config=gcp.alloydb.ClusterSecondaryConfigArgs(
|
1414
1431
|
primary_cluster_name=primary.name,
|
1415
|
-
)
|
1432
|
+
),
|
1433
|
+
opts=pulumi.ResourceOptions(depends_on=[primary_instance]))
|
1416
1434
|
project = gcp.organizations.get_project()
|
1417
|
-
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
1418
|
-
name="alloydb-secondary-cluster",
|
1419
|
-
address_type="INTERNAL",
|
1420
|
-
purpose="VPC_PEERING",
|
1421
|
-
prefix_length=16,
|
1422
|
-
network=default.id)
|
1423
|
-
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
1424
|
-
network=default.id,
|
1425
|
-
service="servicenetworking.googleapis.com",
|
1426
|
-
reserved_peering_ranges=[private_ip_alloc.name])
|
1427
1435
|
```
|
1428
1436
|
|
1429
1437
|
## Import
|
pulumi_gcp/alloydb/instance.py
CHANGED
@@ -757,14 +757,6 @@ class Instance(pulumi.CustomResource):
|
|
757
757
|
initial_user=gcp.alloydb.ClusterInitialUserArgs(
|
758
758
|
password="alloydb-cluster",
|
759
759
|
))
|
760
|
-
default = gcp.alloydb.Instance("default",
|
761
|
-
cluster=default_cluster.name,
|
762
|
-
instance_id="alloydb-instance",
|
763
|
-
instance_type="PRIMARY",
|
764
|
-
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
765
|
-
cpu_count=2,
|
766
|
-
))
|
767
|
-
project = gcp.organizations.get_project()
|
768
760
|
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
769
761
|
name="alloydb-cluster",
|
770
762
|
address_type="INTERNAL",
|
@@ -775,6 +767,15 @@ class Instance(pulumi.CustomResource):
|
|
775
767
|
network=default_network.id,
|
776
768
|
service="servicenetworking.googleapis.com",
|
777
769
|
reserved_peering_ranges=[private_ip_alloc.name])
|
770
|
+
default = gcp.alloydb.Instance("default",
|
771
|
+
cluster=default_cluster.name,
|
772
|
+
instance_id="alloydb-instance",
|
773
|
+
instance_type="PRIMARY",
|
774
|
+
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
775
|
+
cpu_count=2,
|
776
|
+
),
|
777
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
778
|
+
project = gcp.organizations.get_project()
|
778
779
|
```
|
779
780
|
### Alloydb Secondary Instance Basic
|
780
781
|
|
@@ -787,13 +788,24 @@ class Instance(pulumi.CustomResource):
|
|
787
788
|
cluster_id="alloydb-primary-cluster",
|
788
789
|
location="us-central1",
|
789
790
|
network=default.id)
|
791
|
+
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
792
|
+
name="alloydb-secondary-instance",
|
793
|
+
address_type="INTERNAL",
|
794
|
+
purpose="VPC_PEERING",
|
795
|
+
prefix_length=16,
|
796
|
+
network=default.id)
|
797
|
+
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
798
|
+
network=default.id,
|
799
|
+
service="servicenetworking.googleapis.com",
|
800
|
+
reserved_peering_ranges=[private_ip_alloc.name])
|
790
801
|
primary_instance = gcp.alloydb.Instance("primary",
|
791
802
|
cluster=primary.name,
|
792
803
|
instance_id="alloydb-primary-instance",
|
793
804
|
instance_type="PRIMARY",
|
794
805
|
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
795
806
|
cpu_count=2,
|
796
|
-
)
|
807
|
+
),
|
808
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
797
809
|
secondary = gcp.alloydb.Cluster("secondary",
|
798
810
|
cluster_id="alloydb-secondary-cluster",
|
799
811
|
location="us-east1",
|
@@ -805,25 +817,17 @@ class Instance(pulumi.CustomResource):
|
|
805
817
|
secondary_config=gcp.alloydb.ClusterSecondaryConfigArgs(
|
806
818
|
primary_cluster_name=primary.name,
|
807
819
|
),
|
808
|
-
deletion_policy="FORCE"
|
820
|
+
deletion_policy="FORCE",
|
821
|
+
opts=pulumi.ResourceOptions(depends_on=[primary_instance]))
|
809
822
|
secondary_instance = gcp.alloydb.Instance("secondary",
|
810
823
|
cluster=secondary.name,
|
811
824
|
instance_id="alloydb-secondary-instance",
|
812
825
|
instance_type=secondary.cluster_type,
|
813
826
|
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
814
827
|
cpu_count=2,
|
815
|
-
)
|
828
|
+
),
|
829
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
816
830
|
project = gcp.organizations.get_project()
|
817
|
-
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
818
|
-
name="alloydb-secondary-instance",
|
819
|
-
address_type="INTERNAL",
|
820
|
-
purpose="VPC_PEERING",
|
821
|
-
prefix_length=16,
|
822
|
-
network=default.id)
|
823
|
-
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
824
|
-
network=default.id,
|
825
|
-
service="servicenetworking.googleapis.com",
|
826
|
-
reserved_peering_ranges=[private_ip_alloc.name])
|
827
831
|
```
|
828
832
|
|
829
833
|
## Import
|
@@ -908,14 +912,6 @@ class Instance(pulumi.CustomResource):
|
|
908
912
|
initial_user=gcp.alloydb.ClusterInitialUserArgs(
|
909
913
|
password="alloydb-cluster",
|
910
914
|
))
|
911
|
-
default = gcp.alloydb.Instance("default",
|
912
|
-
cluster=default_cluster.name,
|
913
|
-
instance_id="alloydb-instance",
|
914
|
-
instance_type="PRIMARY",
|
915
|
-
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
916
|
-
cpu_count=2,
|
917
|
-
))
|
918
|
-
project = gcp.organizations.get_project()
|
919
915
|
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
920
916
|
name="alloydb-cluster",
|
921
917
|
address_type="INTERNAL",
|
@@ -926,6 +922,15 @@ class Instance(pulumi.CustomResource):
|
|
926
922
|
network=default_network.id,
|
927
923
|
service="servicenetworking.googleapis.com",
|
928
924
|
reserved_peering_ranges=[private_ip_alloc.name])
|
925
|
+
default = gcp.alloydb.Instance("default",
|
926
|
+
cluster=default_cluster.name,
|
927
|
+
instance_id="alloydb-instance",
|
928
|
+
instance_type="PRIMARY",
|
929
|
+
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
930
|
+
cpu_count=2,
|
931
|
+
),
|
932
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
933
|
+
project = gcp.organizations.get_project()
|
929
934
|
```
|
930
935
|
### Alloydb Secondary Instance Basic
|
931
936
|
|
@@ -938,13 +943,24 @@ class Instance(pulumi.CustomResource):
|
|
938
943
|
cluster_id="alloydb-primary-cluster",
|
939
944
|
location="us-central1",
|
940
945
|
network=default.id)
|
946
|
+
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
947
|
+
name="alloydb-secondary-instance",
|
948
|
+
address_type="INTERNAL",
|
949
|
+
purpose="VPC_PEERING",
|
950
|
+
prefix_length=16,
|
951
|
+
network=default.id)
|
952
|
+
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
953
|
+
network=default.id,
|
954
|
+
service="servicenetworking.googleapis.com",
|
955
|
+
reserved_peering_ranges=[private_ip_alloc.name])
|
941
956
|
primary_instance = gcp.alloydb.Instance("primary",
|
942
957
|
cluster=primary.name,
|
943
958
|
instance_id="alloydb-primary-instance",
|
944
959
|
instance_type="PRIMARY",
|
945
960
|
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
946
961
|
cpu_count=2,
|
947
|
-
)
|
962
|
+
),
|
963
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
948
964
|
secondary = gcp.alloydb.Cluster("secondary",
|
949
965
|
cluster_id="alloydb-secondary-cluster",
|
950
966
|
location="us-east1",
|
@@ -956,25 +972,17 @@ class Instance(pulumi.CustomResource):
|
|
956
972
|
secondary_config=gcp.alloydb.ClusterSecondaryConfigArgs(
|
957
973
|
primary_cluster_name=primary.name,
|
958
974
|
),
|
959
|
-
deletion_policy="FORCE"
|
975
|
+
deletion_policy="FORCE",
|
976
|
+
opts=pulumi.ResourceOptions(depends_on=[primary_instance]))
|
960
977
|
secondary_instance = gcp.alloydb.Instance("secondary",
|
961
978
|
cluster=secondary.name,
|
962
979
|
instance_id="alloydb-secondary-instance",
|
963
980
|
instance_type=secondary.cluster_type,
|
964
981
|
machine_config=gcp.alloydb.InstanceMachineConfigArgs(
|
965
982
|
cpu_count=2,
|
966
|
-
)
|
983
|
+
),
|
984
|
+
opts=pulumi.ResourceOptions(depends_on=[vpc_connection]))
|
967
985
|
project = gcp.organizations.get_project()
|
968
|
-
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
|
969
|
-
name="alloydb-secondary-instance",
|
970
|
-
address_type="INTERNAL",
|
971
|
-
purpose="VPC_PEERING",
|
972
|
-
prefix_length=16,
|
973
|
-
network=default.id)
|
974
|
-
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
|
975
|
-
network=default.id,
|
976
|
-
service="servicenetworking.googleapis.com",
|
977
|
-
reserved_peering_ranges=[private_ip_alloc.name])
|
978
986
|
```
|
979
987
|
|
980
988
|
## Import
|