oci_core_network_security_group

This resource provides the Network Security Group resource in Oracle Cloud Infrastructure Core service.

Creates a new network security group for the specified VCN.

Example Usage

resource "oci_core_network_security_group" "test_network_security_group" {
	#Required
	compartment_id = var.compartment_id
	vcn_id = oci_core_vcn.test_vcn.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.network_security_group_display_name
	freeform_tags = {"Department"= "Finance"}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Network Security Group * update - (Defaults to 20 minutes), when updating the Network Security Group * delete - (Defaults to 20 minutes), when destroying the Network Security Group

Import

NetworkSecurityGroups can be imported using the id, e.g.

$ terraform import oci_core_network_security_group.test_network_security_group "id"