terraform/ecc-openstack-002-volume_not_in_use/green/network.tf (31 lines of code) (raw):

resource "openstack_networking_network_v2" "this" { name = "002-network-green" admin_state_up = "true" tags = [ "CustodianRule = ecc-openstack-002-volume_not_in_use", "ComplianceStatus = Green" ] } resource "openstack_networking_subnet_v2" "this" { name = "002-subnet-green" network_id = openstack_networking_network_v2.this.id cidr = "192.168.199.0/24" ip_version = 4 tags = [ "CustodianRule = ecc-openstack-002-volume_not_in_use", "ComplianceStatus = Green" ] } resource "openstack_networking_port_v2" "this" { name = "002-port-green" network_id = openstack_networking_network_v2.this.id admin_state_up = "true" fixed_ip { subnet_id = openstack_networking_subnet_v2.this.id ip_address = "192.168.199.10" } tags = [ "CustodianRule = ecc-openstack-002-volume_not_in_use", "ComplianceStatus = Green" ] }