Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion mmv1/products/networksecurity/MirroringEndpointGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ examples:
network_name: 'example-network'
deployment_group_id: 'example-dg'
endpoint_group_id: 'example-eg'
- name: 'network_security_mirroring_endpoint_group_broker_basic'
config_path: 'templates/terraform/examples/network_security_mirroring_endpoint_group_broker_basic.tf.tmpl'
primary_resource_id: 'default'
min_version: 'beta'
vars:
network_name: 'example-network'
deployment_group_id: 'example-dg'
endpoint_group_id: 'example-eg'
parameters:
- name: 'location'
type: String
Expand Down Expand Up @@ -99,8 +107,24 @@ properties:
The deployment group that this DIRECT endpoint group is connected to, for example:
`projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
See https://google.aip.dev/124.
required: true
immutable: true
exactly_one_of:
- mirroring_deployment_group
- mirroring_deployment_groups
- name: 'mirroringDeploymentGroups'
Comment thread
duvni marked this conversation as resolved.
type: Array
description: |-
A list of the deployment groups that this BROKER endpoint group is
connected to, for example:
`projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
See https://google.aip.dev/124.
min_version: 'beta'
immutable: true
item_type:
type: String
exactly_one_of:
- mirroring_deployment_group
- mirroring_deployment_groups
- name: 'state'
type: String
description: |-
Expand All @@ -123,6 +147,17 @@ properties:
operation (e.g. adding a new association to the group).
See https://google.aip.dev/128.
output: true
- name: 'type'
type: String
description: |-
The type of the endpoint group.
If left unspecified, defaults to DIRECT.
Possible values:
DIRECT
BROKER
min_version: 'beta'
default_value: 'DIRECT'
immutable: true
- name: description
type: String
description: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
resource "google_compute_network" "network" {
provider = google-beta
name = "{{index $.Vars "network_name"}}"
auto_create_subnetworks = false
}

resource "google_network_security_mirroring_deployment_group" "deployment_group" {
provider = google-beta
mirroring_deployment_group_id = "{{index $.Vars "deployment_group_id"}}"
location = "global"
network = google_compute_network.network.id
}

resource "google_network_security_mirroring_endpoint_group" "{{$.PrimaryResourceId}}" {
provider = google-beta
mirroring_endpoint_group_id = "{{index $.Vars "endpoint_group_id"}}"
location = "global"
type = "BROKER"
mirroring_deployment_groups = [google_network_security_mirroring_deployment_group.deployment_group.id]
description = "some description"
labels = {
foo = "bar"
}
}
Loading