subcategory | page_title | description |
---|---|---|
Datastream |
Google: google_datastream_private_connection |
The PrivateConnection resource is used to establish private connectivity between Datastream and a customer's network. |
The PrivateConnection resource is used to establish private connectivity between Datastream and a customer's network.
To get more information about PrivateConnection, see:
- API documentation
- How-to Guides
resource "google_datastream_private_connection" "default" {
display_name = "Connection profile"
location = "us-central1"
private_connection_id = "my-connection"
labels = {
key = "value"
}
vpc_peering_config {
vpc = google_compute_network.default.id
subnet = "10.0.0.0/29"
}
}
resource "google_compute_network" "default" {
name = "my-network"
}
The following arguments are supported:
-
display_name
- (Required) Display name. -
vpc_peering_config
- (Required) The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below. -
private_connection_id
- (Required) The private connectivity identifier. -
location
- (Required) The name of the location this repository is located in.
The vpc_peering_config
block supports:
-
vpc
- (Required) Fully qualified name of the VPC that Datastream will peer to. Format: projects/{project}/global/{networks}/{name} -
subnet
- (Required) A free subnet for peering. (CIDR of /29)
-
labels
- (Optional) Labels. -
project
- (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
-
id
- an identifier for the resource with formatprojects/{{project}}/locations/{{location}}/privateConnections/{{private_connection_id}}
-
name
- The resource's name. -
state
- State of the PrivateConnection. -
error
- The PrivateConnection error in case of failure. Structure is documented below.
-
message
- (Optional) A message containing more information about the error that occurred. -
details
- (Optional) A list of messages that carry the error details.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.delete
- Default is 20 minutes.
PrivateConnection can be imported using any of these accepted formats:
$ terraform import google_datastream_private_connection.default projects/{{project}}/locations/{{location}}/privateConnections/{{private_connection_id}}
$ terraform import google_datastream_private_connection.default {{project}}/{{location}}/{{private_connection_id}}
$ terraform import google_datastream_private_connection.default {{location}}/{{private_connection_id}}
This resource supports User Project Overrides.