You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Producer specific configuration examples can be found under the `/config` folder of that specific producer. Such as for AlloyDB, the example would be in the folder `configuration/producer/AlloyDB/config/instance.yaml.example`.
2.`producer_instance_name` : Name of the producer service instance.
238
+
The `producer-connectivity.tfvars` file defines configurations for Private Service Connect (PSC) endpoints. These endpoints enable connectivity between consumer and producer services, such as Cloud SQL, AlloyDB, or other targets.
212
239
213
-
3.`subnetwork_name` : this variable names the specific subnetwork within your Virtual Private Cloud (VPC) network from which the internal IP address for the PSC connection will be allocated.
240
+
### Key Variables
214
241
215
-
4.`network_name` : VPC network for the forwarding rule which hosts the subnetwork mentioned above.
242
+
1.`endpoint_project_id`: Consumer project ID where the forwarding rule is created.
243
+
2.`producer_instance_project_id`: Project where the producer service (e.g., Cloud SQL, AlloyDB) is created.
244
+
3.`subnetwork_name`: Name of the subnetwork within the VPC network from which the internal IP address for the PSC connection will be allocated.
245
+
4.`network_name`: VPC network hosting the subnetwork mentioned above.
246
+
5.`ip_address_literal`: **(Optional)** Specific internal IP address for the PSC connection. Leave null for automatic allocation.
247
+
6.`region`: Region where the PSC endpoint is created.
248
+
7.`producer_cloudsql`: **(Optional)** Configuration for Cloud SQL instances. Includes:
249
+
-`instance_name`: Name of the Cloud SQL instance.
250
+
8.`producer_alloydb`: **(Optional)** Configuration for AlloyDB instances. Includes:
251
+
-`instance_name`: Name of the AlloyDB instance.
252
+
-`cluster_id`: ID of the AlloyDB cluster.
253
+
9.`target`: **(Optional)** Service attachment URL for other targets.
216
254
217
-
5.`ip_address_literal` : **(Optional)** Specific internal IP, or leave null for automatic allocation.
255
+
### Example Usage
218
256
219
-
**Example Usage**
220
-
221
-
```
257
+
```hcl
222
258
psc_endpoints = [
259
+
// Configuration for a PSC endpoint with a CloudSQL instance
-**Cloud SQL Configuration**: Use the `producer_cloudsql` block to specify the Cloud SQL instance name.
300
+
-**AlloyDB Configuration**: Use the `producer_alloydb` block to specify the AlloyDB instance name and cluster ID.
301
+
-**Target Configuration**: Use the `target` field to specify the service attachment URL for other targets.
302
+
- Ensure that the `region` field is specified for all PSC endpoints to avoid deployment issues.
303
+
235
304
## 06-consumer
236
305
237
-
Consumer specific configuration examples can be found under the `/config` folder of that specific consumer. Such as for GCE, the example would be in the folder `configuration/consumer/GCE/config/instance.yaml.example`.
306
+
Consumer specific configuration examples can be found under the `/config` folder of that specific consumer. Such as for GCE, the example would be in the folder `configuration/consumer/GCE/config/`.
307
+
308
+
## 07-consumer-load-balancing
309
+
310
+
Consumer load balancing specific configuration examples can be found under the `/config` folder of that specific load balancer. Such as for Application External Load Balancer, the example would be in the folder `configuration/consumer-load-balancing/Application/External/config/`.
0 commit comments