» baiducloud_security_group

Provide a resource to create a security group.

» Example Usage

resource "baiducloud_security_group" "default" {
  name        = "testSecurityGroup"
  description = "default"
  tags = {
    "testKey" = "testValue"
  }
}

» Argument Reference

The following arguments are supported:

  • name - (Required, ForceNew) SecurityGroup name
  • description - (Optional, ForceNew) SecurityGroup description
  • tags - (Optional, ForceNew) Tags, do not support modify
  • vpc_id - (Optional, ForceNew) SecurityGroup binded VPC id

» Import

Bcc SecurityGroup can be imported, e.g.

$ terraform import baiducloud_security_group.default security_group_id