» jdcloud_network_security_group
Provides a JDCloud network security group
» Example Usage
resource "jdcloud_network_security_group" "sg-example" {
network_security_group_name = "sg-example"
vpc_id = "vpc-example"
}
» Argument Reference
The following arguments are supported:
-
network_security_group_name- (Required): Name this security group -
vpc_id- (Required) : Security group is supposed to exist under a vpc, give the id this vpc -
description- (Optional): Describe this security group
» Attribute Reference
The following attributes are exported:
-
security_group_id: A string used to identify this security group, needed when attaching/detaching from a network interface
» Import
Existing security group can be imported to Terraform state by specifying the its id.
terraform import jdcloud_network_security_group.example sg-abc123456