alicloud_ens_security_group
更新时间:
Provides a ENS Security Group resource.
For information about ENS Security Group and how to use it, see What is Security Group.
-> NOTE: Available since v1.213.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
resource "alicloud_ens_security_group" "default" {
description = var.name
security_group_name = var.name
}
Argument Reference
The following arguments are supported:
description
- (Optional) Security group description informationIt must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start withhttp://
orhttps://
.security_group_name
- (Optional) Security group nameThe security group name. The length is 2~128 English or Chinese characters. It must start with an uppercase or lowcase letter or a Chinese character and cannot start withhttp://
orhttps
. Can contain digits, colons (:), underscores (_), or hyphens (-).
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Security Group.delete
- (Defaults to 5 mins) Used when delete the Security Group.update
- (Defaults to 5 mins) Used when update the Security Group.
Import
ENS Security Group can be imported using the id, e.g.
$ terraform import alicloud_ens_security_group.example <id>
文档内容是否对您有帮助?