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
module"google_compute_packet_mirroring" {
source="./modules/google-beta/r/google_compute_packet_mirroring"# description - (optional) is a type of stringdescription=null# name - (required) is a type of stringname=null# priority - (optional) is a type of numberpriority=null# project - (optional) is a type of stringproject=null# region - (optional) is a type of stringregion=nullcollector_ilb=[{
url =null
}]
filter=[{
cidr_ranges = []
direction =null
ip_protocols = []
}]
mirrored_resources=[{
instances = [{
url =null
}]
subnetworks = [{
url =null
}]
tags = []
}]
network=[{
url =null
}]
timeouts=[{
create =null
delete =null
update =null
}]
}
variable"description" {
description="(optional) - A human-readable description of the rule."type=stringdefault=null
}
variable"name" {
description="(required) - The name of the packet mirroring rule"type=string
}
variable"priority" {
description="(optional) - Since only one rule can be active at a time, priority is\nused to break ties in the case of two rules that apply to\nthe same instances."type=numberdefault=null
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"region" {
description="(optional) - The Region in which the created address should reside.\nIf it is not provided, the provider region is used."type=stringdefault=null
}
variable"collector_ilb" {
description="nested block: NestingList, min items: 1, max items: 1"type=set(object(
{
url =string
}
))
}
variable"filter" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
cidr_ranges =list(string)
direction =string
ip_protocols =list(string)
}
))
default=[]
}
variable"mirrored_resources" {
description="nested block: NestingList, min items: 1, max items: 1"type=set(object(
{
instances =list(object(
{
url =string
}
))
subnetworks =list(object(
{
url =string
}
))
tags =list(string)
}
))
}
variable"network" {
description="nested block: NestingList, min items: 1, max items: 1"type=set(object(
{
url =string
}
))
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_compute_packet_mirroring""this" {
# description - (optional) is a type of stringdescription=var.description# name - (required) is a type of stringname=var.name# priority - (optional) is a type of numberpriority=var.priority# project - (optional) is a type of stringproject=var.project# region - (optional) is a type of stringregion=var.regiondynamic"collector_ilb" {
for_each=var.collector_ilbcontent {
# url - (required) is a type of stringurl=collector_ilb.value["url"]
}
}
dynamic"filter" {
for_each=var.filtercontent {
# cidr_ranges - (optional) is a type of list of stringcidr_ranges=filter.value["cidr_ranges"]
# direction - (optional) is a type of stringdirection=filter.value["direction"]
# ip_protocols - (optional) is a type of list of stringip_protocols=filter.value["ip_protocols"]
}
}
dynamic"mirrored_resources" {
for_each=var.mirrored_resourcescontent {
# tags - (optional) is a type of list of stringtags=mirrored_resources.value["tags"]
dynamic"instances" {
for_each=mirrored_resources.value.instancescontent {
# url - (required) is a type of stringurl=instances.value["url"]
}
}
dynamic"subnetworks" {
for_each=mirrored_resources.value.subnetworkscontent {
# url - (required) is a type of stringurl=subnetworks.value["url"]
}
}
}
}
dynamic"network" {
for_each=var.networkcontent {
# url - (required) is a type of stringurl=network.value["url"]
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}