pm

Packet Mirroring

NetworkingGCP
General

General information about the service.

Description

Packet Mirroring clones the traffic of specified instances in your VPC network and forwards it for examination. It is useful for network security monitoring and troubleshooting.

Service ID

compute.googleapis.com

Resource Pattern

projects/{project}/regions/{region}/packetMirrorings/{mirroring}

Chat

Powered by AI

Talk to this service to learn more about it.

Suggested questions:

Naming

The conventions, rules, and restrictions for naming this service.

Naming Convention

pm-{workload}-{env}

Length

1-63

Valid Characters

Lowercase letters, numbers, hyphens

Scope

regional

Code

Deploy your infrastructure as code using your preferred tooling.

Official DocumentationTerraform
terraform
1resource "google_compute_packet_mirroring" "main" {
2 name = "pm-${var.workload}-${var.environment}"
3 region = var.region
4 network {
5 url = google_compute_network.main.id
6 }
7 collector_ilb {
8 url = google_compute_forwarding_rule.collector.id
9 }
10 mirrored_resources {
11 subnetworks {
12 url = google_compute_subnetwork.main.id
13 }
14 }
15}
Utilities

Utilities to support app deployment or configuration.