hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.29k stars 1.72k forks source link

google_compute_packet_mirroring support for collector destination in a peer network #7392

Open howsTricks opened 3 years ago

howsTricks commented 3 years ago

Community Note

Description

There is an option to configure GCP packet mirroring to have a source and destination in different networks that are peered. Hoping to get this option exposed in the google_compute_packet_mirroring resource

New or Affected Resource(s)

google_compute_packet_mirroring

Potential Terraform Configuration

# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.

#Current configuration
  network {
    url = google_compute_network.default.id
  }

#Proposed configuration
  mirrored_source_network {
    url = google_compute_network.mirrored_source.id
  }
  collector_destination_network {
    url = google_compute_network.collector_destination.id
  }

References

See here for google documentation on the this functionality https://cloud.google.com/vpc/docs/packet-mirroring#collector_destination_in_a_peer_network

ggtisc commented 1 month ago

Hi @howsTricks!

Currently there is the cidr_ranges argument to achieve this goal