## imported net security group -> why edge id is needed?
resource "vcd_nsxt_security_group" "net_sec_group" {
#edge_gateway_id = var.edge.id
name = "sec-group-${vcd_nsxt_network_imported.net}"
description = "imported net-sec-group: ${local.net.subnet}"
member_org_network_ids = [vcd_nsxt_network_imported.net.id]
}
Debug Output
│ Error: Missing required argument
│
│ on mod-l2_nets/fcp-l2-nets.tf line 146, in resource "vcd_nsxt_security_group" "net_sec_group":
│ 146: resource "vcd_nsxt_security_group" "net_sec_group" {
│
│ The argument "edge_gateway_id" is required, but no definition was found.
╵
Expected Behavior
I should be able to create a static security group in a vdc group with imported net e with no edge gateway (with UI is possible).
owner_id parameter (accepting edge gw id or vcd group id), or vdc_group (as alternative of edge_gateway_id should be present.
Terraform Version
Terraform v1.9.7 on linux_amd64
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
I should be able to create a static security group in a vdc group with imported net e with no edge gateway (with UI is possible).
owner_id
parameter (accepting edge gw id or vcd group id), orvdc_group
(as alternative ofedge_gateway_id
should be present.Actual Behavior
"edge_gateway_id" is required